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