diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index c2267d1..e895f15 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -171,9 +171,6 @@ 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 @@ -2189,9 +2186,3 @@ 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]); - } -} \ No newline at end of file diff --git a/src/espmega_iot_core.hpp b/src/espmega_iot_core.hpp index bf277ec..f0b63af 100644 --- a/src/espmega_iot_core.hpp +++ b/src/espmega_iot_core.hpp @@ -46,7 +46,6 @@ void mqtt_callback(char* topic, byte* payload, unsigned int length); void virtual_interrupt_loop(); void virtual_interrupt_callback(int pin, int state); -void virtual_interrupt_preload(); void network_begin(); void mqtt_connect(); void mqtt_subscribe(); diff --git a/src/user_code.hpp b/src/user_code.hpp index 4c318e4..d2703bc 100644 --- a/src/user_code.hpp +++ b/src/user_code.hpp @@ -15,9 +15,6 @@ //#define OVERCLOCK_FM //#define OVERCLOCK_FM2 -// I/O Configuration -#define VIRTUAL_INTERRUPT_PRELOAD // Preload Virtual Interrupts buffer - // Enable Software Module(s) #define ENABLE_INTERNAL_LCD #define ENABLE_IR_MODULE