move initial send_settings out of main loop
This commit is contained in:
9
main.c
9
main.c
@@ -198,16 +198,13 @@ int main()
|
||||
|
||||
set_Output(BitPH5, ON);
|
||||
|
||||
|
||||
while(1)
|
||||
{
|
||||
wdt_reset(); // WDT reset at least every sec
|
||||
|
||||
#if PLC_MQTT_ENABLED
|
||||
if(millis() < 10)
|
||||
send_settings();
|
||||
#endif
|
||||
|
||||
while(1){
|
||||
wdt_reset(); // WDT reset at least every sec
|
||||
|
||||
ioHelperReadPins();
|
||||
ioHelperDebounce();
|
||||
ioHelperEdgeDetector();
|
||||
|
||||
Reference in New Issue
Block a user