test i2c asynch: Remove printf usage from interrupt context

The cbmaster_done function is a callback which will be called from
the asynch I2C interrupt handler. Calling to printf from this context
sometimes lead to missing interrupts on the slave side. This was at least
encountered on STM32F3 MCUs.
pull/3290/head
Laurent MEUNIER 2016-11-08 09:30:09 +01:00 committed by Anna Bridge
parent 2cf044dce5
commit 21b4f0349f
1 changed files with 0 additions and 1 deletions

View File

@ -45,7 +45,6 @@ I2CSlave slave(D3, D6);
volatile int why; volatile int why;
volatile bool master_complete = false; volatile bool master_complete = false;
void cbmaster_done(int event) { void cbmaster_done(int event) {
printf("cbmaster_done\n");
master_complete = true; master_complete = true;
why = event; why = event;
} }