The unified diff between revisions [9f05a1eb..] and [4f22e7ef..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'watchdog.c'
# # old_revision [9f05a1eb606ea1c0421aa4a0b25b83b4fe4a20c8] # new_revision [4f22e7ef7d3064e3b51a5b868a4722f3f13c747b] # # patch "watchdog.c" # from [8398952deb37d8242fc858143c5e201321343c27] # to [97962bde1fc11e8fea8fae642ed8e0bcdd78468a] # ============================================================ --- watchdog.c 8398952deb37d8242fc858143c5e201321343c27 +++ watchdog.c 97962bde1fc11e8fea8fae642ed8e0bcdd78468a @@ -13,13 +13,13 @@ * now, something's gone horribly wrong. */ -#define WATCHDOG_TIMEOUT (100 * TIMER_MS) +#define WATCHDOG_TIMEOUT (100 * TIMER0_MS) static unsigned int watchdog_last_seen[WATCHDOG_MODULES]; void watchdog_kick(unsigned int module) { - if (module > WATCHDOG_MODULES) + if (module >= WATCHDOG_MODULES) return; watchdog_last_seen[module] = timer_read(); }