|
|
|
@ -216,12 +216,14 @@ int main()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
wdt_reset(); // WDT reset at least every sec
|
|
|
|
wdt_reset(); // WDT reset at least every sec
|
|
|
|
|
|
|
|
|
|
|
|
//if (flag_refresh_inStates) {
|
|
|
|
#if PLC_MQTT_ENABLED
|
|
|
|
|
|
|
|
if(millis() < 10)
|
|
|
|
|
|
|
|
send_abzug_speed();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
ioHelperReadPins();
|
|
|
|
ioHelperReadPins();
|
|
|
|
ioHelperDebounce();
|
|
|
|
ioHelperDebounce();
|
|
|
|
ioHelperEdgeDetector();
|
|
|
|
ioHelperEdgeDetector();
|
|
|
|
// flag_refresh_inStates = 0;
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Toggle all outs which are set to blinking
|
|
|
|
// Toggle all outs which are set to blinking
|
|
|
|
if(millis() - timer_blink_outs > 500){
|
|
|
|
if(millis() - timer_blink_outs > 500){
|
|
|
|
|