From c4825577dc6ae3a106b9fb1c229d7c44e5aacc64 Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Mon, 14 Sep 2020 18:56:45 +0300 Subject: [PATCH 1/2] fix(xod-arduino): fix TetheringInternet namespace in generated code --- packages/xod-arduino/platform/program.tpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xod-arduino/platform/program.tpl.cpp b/packages/xod-arduino/platform/program.tpl.cpp index 047270e06..c3790f2a4 100644 --- a/packages/xod-arduino/platform/program.tpl.cpp +++ b/packages/xod-arduino/platform/program.tpl.cpp @@ -88,7 +88,7 @@ Node_{{ id }} node_{{ id }} = Node_{{ id }}( namespace detail { void handleDebugProtocolMessages() { {{#withTetheringInetNode nodes}} - bool tetheringInetNodeReceivingData = xod__debug__tethering_inet::TetheringInternet::isReceiving(); + bool tetheringInetNodeReceivingData = xod::tethering_inet::TetheringInternet::isReceiving(); {{/withTetheringInetNode}} bool rewindToEol = true; @@ -104,7 +104,7 @@ void handleDebugProtocolMessages() { switch (tweakedNodeId) { {{#withTetheringInetNode nodes}} case {{ id }}: - xod__debug__tethering_inet::TetheringInternet::beginReceiving(XOD_DEBUG_SERIAL.parseInt()); + xod::tethering_inet::TetheringInternet::beginReceiving(XOD_DEBUG_SERIAL.parseInt()); rewindToEol = false; XOD_DEBUG_SERIAL.read(); // : // The rest of data should be read by nodes From 743365eeb96b4bc7b631d22751ab4ab030ab2b61 Mon Sep 17 00:00:00 2001 From: Evgeny Kochetkov Date: Mon, 14 Sep 2020 18:57:23 +0300 Subject: [PATCH 2/2] fix(stdlib): fix typo in `xod/debug/get-local-ip` implementation --- workspace/__lib__/xod/debug/get-local-ip/patch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/__lib__/xod/debug/get-local-ip/patch.cpp b/workspace/__lib__/xod/debug/get-local-ip/patch.cpp index 28ebe35f3..20ac97e60 100644 --- a/workspace/__lib__/xod/debug/get-local-ip/patch.cpp +++ b/workspace/__lib__/xod/debug/get-local-ip/patch.cpp @@ -7,7 +7,7 @@ node { return; auto inet = getValue(ctx); - ValueType::T ip = inet->getIP(); + typeof_IP ip = inet->getIP(); if (ip == 0) { raiseError(ctx); return;