• Adam Wujek's avatar
    common/i2c: fix variable size block writes · 5fd1cff2
    Adam Wujek authored
    The line:
    *cmds->cmds[cmd_index].data_len = tx_tmp;
    triggered the write to memory, which is declared as read-only (const).
    Such writes trigger the memory exception.
    
    To make the code simpler and avoid problematic write,
    support only writes that has a size of a register.
    
    The fix was tested for PEC.
    Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
    5fd1cff2
Name
Last commit
Last update
bootloader Loading commit data...
build Loading commit data...
common Loading commit data...
doc Loading commit data...
main_fw Loading commit data...
monimod-pcb Loading commit data...
pytest Loading commit data...
radiation_tests/PSI_June_2020 Loading commit data...
test_master Loading commit data...
utils Loading commit data...
.dir-locals.el Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
README.md Loading commit data...