Optimize timer drift

Fixes: https://github.com/espressif/arduino-esp32/issues/227
This commit is contained in:
me-no-dev 2017-08-26 00:00:58 +03:00
parent ad179548e4
commit 6707d4d331

View File

@ -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;
}
}