X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm32l0%2Fao_flash_stm32l0.c;h=521c5c0cfbb95d56317440c6c7be6bb55a0c5cde;hb=d216d17e5317607ced5a2437e5360203647e6eb9;hp=ba3274422ef969797bb50b0e28e7eb3b6868fa15;hpb=476fd2f2c23da427b6b2a68f7d285767a924041e;p=fw%2Faltos diff --git a/src/stm32l0/ao_flash_stm32l0.c b/src/stm32l0/ao_flash_stm32l0.c index ba327442..521c5c0c 100644 --- a/src/stm32l0/ao_flash_stm32l0.c +++ b/src/stm32l0/ao_flash_stm32l0.c @@ -186,7 +186,7 @@ ao_storage_device_write(ao_pos_t pos, void *buf, uint16_t len) flash_write_select(this_pos); /* Update write buffer with new contents */ - int this_word = 4 - (pos & 3); + uint16_t this_word = 4 - (pos & 3); if (this_word > len) this_word = len; memcpy(&write_buf.u8[pos & 3], b8, this_word);