We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a243a commit 4a7324cCopy full SHA for 4a7324c
examples/opta_opcua_server/opta_opcua_server.ino
@@ -105,9 +105,8 @@ static PinStatus arduino_opta_digital_read(pin_size_t const pin)
105
void setup()
106
{
107
Serial.begin(115200);
108
- //auto const start = millis();
109
- //for (; !Serial && (millis() - start) < 1000; ) { }
110
- while (!Serial) { }
+ auto const start = millis();
+ for (; !Serial && (millis() - start) < 1000; ) { }
111
112
#if USE_MODBUS_SENSOR_MD02
113
RS485.setDelays(MODBUS_PRE_DELAY_BR, MODBUS_POST_DELAY_BR);
0 commit comments