Commit ea6ce355 authored by Adam Wujek's avatar Adam Wujek

main/i2c: use PEC by default

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent c2e4fc0d
......@@ -27,7 +27,13 @@ static uint16_t last_byte_read_got_nack __xMR;
static cmd_space_t *cmds;
/* Enable PEC by default */
#if defined(MMFANT) || defined(MMRTSB) || defined(MMRATO) || defined(MMPROT)
uint16_t use_pec __xMR = 1;
#else
uint16_t use_pec __xMR = 0;
#endif
static uint16_t pec_checksum __xMR;
static uint8_t tmp_pec_checksum;
static uint8_t checksum_from_m;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment