From 6707d4d331c1556ff98d9b5b87d6a5d2acc1a148 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 26 Aug 2017 00:00:58 +0300 Subject: [PATCH] Optimize timer drift Fixes: https://github.com/espressif/arduino-esp32/issues/227 --- cores/esp32/esp32-hal-timer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cores/esp32/esp32-hal-timer.c b/cores/esp32/esp32-hal-timer.c index ab4fa7ac..12ca21c5 100644 --- a/cores/esp32/esp32-hal-timer.c +++ b/cores/esp32/esp32-hal-timer.c @@ -79,9 +79,6 @@ void IRAM_ATTR __timerISR(void * arg){ while(i--){ hw_timer_reg_t * dev = hw_timer[i].dev; if((status & (1 << i)) && dev->config.autoreload){ - dev->load_high = 0; - dev->load_low = 0; - dev->reload = 1; dev->config.alarm_en = 1; } }