allow preloading virtual interrupt buffer
This commit is contained in:
parent
3b146b3bdf
commit
e3c07411cb
3 changed files with 13 additions and 0 deletions
|
@ -171,6 +171,9 @@ void setup()
|
|||
Wire.setClock(400000);
|
||||
#endif
|
||||
io_begin();
|
||||
#ifdef VIRTUAL_INTERRUPT_PRELOAD
|
||||
virtual_interrupt_preload();
|
||||
#endif
|
||||
eeprom_retrieve_init();
|
||||
user_pre_init();
|
||||
#ifdef ENABLE_INTERNAL_LCD
|
||||
|
@ -2186,3 +2189,9 @@ bool dac_get_state(int id)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
void virtual_interrupt_preload() {
|
||||
for (int i = 0; i < 16; i++) {
|
||||
virtual_interupt_state[i] = ESPMega_digitalRead(virtual_interrupt_pins[i]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue