Optimize timer drift
Fixes: https://github.com/espressif/arduino-esp32/issues/227
This commit is contained in:
parent
ad179548e4
commit
6707d4d331
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user