diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-03-13 16:13:24 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-03-13 16:13:24 -0700 |
| commit | 7100d5e485a93552e035476cb794145d6e194052 (patch) | |
| tree | 930efb1c25e2773cd0abca7812cb748a2f7c11ab /supervisor | |
| parent | df5be65423e1cfd36af782108277c31cdb9056aa (diff) | |
Fix autoreload and ticks in general
Diffstat (limited to 'supervisor')
| -rw-r--r-- | supervisor/shared/tick.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/supervisor/shared/tick.c b/supervisor/shared/tick.c index 20ca3abb7..80bd6f204 100644 --- a/supervisor/shared/tick.c +++ b/supervisor/shared/tick.c @@ -125,7 +125,9 @@ extern void supervisor_enable_tick(void) { } extern void supervisor_disable_tick(void) { - tick_enable_count--; + if (tick_enable_count > 0) { + tick_enable_count--; + } if (tick_enable_count == 0) { port_disable_tick(); } |
