Skip to content

Commit

Permalink
Don't display DS interop warning when IP is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Dec 3, 2023
1 parent 5667d90 commit 4a2e94d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/services/ds_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,16 @@ class DSInteropClient {

var rawIP = jsonData['robotIP'];

if (rawIP == null || rawIP == 0) {
if (rawIP == null) {
logger
.warning('[DS INTEROP] Ignoring Json message, robot IP is not valid');
return;
}

if (rawIP == 0) {
return;
}

String ipAddress = IPAddressUtil.getIpFromInt32Value(rawIP);

if (_lastAnnouncedIP != ipAddress) {
Expand Down

0 comments on commit 4a2e94d

Please sign in to comment.