No need to zero prevWatchdogCounter because it's zero by default.

This commit is contained in:
László Monda
2017-09-28 23:23:19 +02:00
parent 96eeb97a04
commit 8b180d94b0

View File

@@ -9,7 +9,7 @@
#define PIT_I2C_WATCHDOG_IRQ_ID PIT0_IRQn
#define PIT_SOURCE_CLOCK CLOCK_GetFreq(kCLOCK_BusClk)
static uint32_t prevWatchdogCounter = 0;
static uint32_t prevWatchdogCounter;
uint32_t I2C_WatchdogInnerCounter;
uint32_t I2C_WatchdogOuterCounter;