diff --git a/main.c b/main.c index a186170..5c1c08e 100644 --- a/main.c +++ b/main.c @@ -418,6 +418,7 @@ level pulse on the Hot Plug Detect pin. This pulse shall be at least 100 msec. puts("loop\r\n"); while (true) { IWDG_KR = IWDG_KR_KEY_REFRESH; // reset watchdog +/* if (i2c_transaction_new) { // an I²C transaction started i2c_transaction_new = false; // clear flag if (i2c_input_new) { @@ -426,6 +427,7 @@ level pulse on the Hot Plug Detect pin. This pulse shall be at least 100 msec. puts("I²C read\r\n"); } } +*/ if (action) { // something has been performed, check if other flags have been set meanwhile action = false; // clear flag } else { // nothing down