Skip to content

Commit 1a987ce

Browse files
committed
HardwareSetupRemote: correct sequence
1 parent 211d5b6 commit 1a987ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ArduinoCore-Linux/cores/arduino/HardwareSetupRemote.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ class HardwareSetupRemoteClass {
6767
void begin() {
6868
if (p_stream == nullptr) {
6969
default_stream.begin(port);
70+
handShake(&default_stream);
7071
IPAddress ip = default_stream.remoteIP();
7172
int remote_port = default_stream.remotePort();
7273
default_stream.setTarget(ip, remote_port);
7374
default_stream.write((const uint8_t*)"OK", 2);
7475
default_stream.flush();
75-
begin(&default_stream, true);
76+
begin(&default_stream, false);
7677
} else {
7778
begin(p_stream, true);
7879
}

0 commit comments

Comments
 (0)