Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tethering inet #2036

Merged
merged 2 commits into from
Sep 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/xod-arduino/platform/program.tpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion workspace/__lib__/xod/debug/get-local-ip/patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ node {
return;

auto inet = getValue<input_INET>(ctx);
ValueType<output_IP>::T ip = inet->getIP();
typeof_IP ip = inet->getIP();
if (ip == 0) {
raiseError(ctx);
return;
Expand Down