Skip to content

Commit

Permalink
Fixing some minor pong-handling issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammy1Am committed May 12, 2018
1 parent 5700cbf commit f069811
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Arduino/Moppy/src/MoppyNetworks/MoppySerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ void MoppySerial::readMessages() {
}

void MoppySerial::sendPong() {
Serial.write(pongBytes, 7);
Serial.write(pongBytes, sizeof(pongBytes));
}

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private void updateBridgesList() {
});

netBridgesPanel.revalidate();
netBridgesPanel.repaint();
}

private void updateDevicesList() {
Expand All @@ -53,6 +54,7 @@ private void updateDevicesList() {
});

netDevicesPanel.revalidate();
netDevicesPanel.repaint();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public void run() {
messageConsumer.acceptNetworkMessage(MoppyMessageFactory.networkReceivedFromBytes(
Arrays.copyOf(buffer, totalMessageLength),
BridgeSerial.class.getName(),
serialPort.getDescriptivePortName(),
null));
serialPort.getSystemPortName(),
"Serial Device")); // Serial ports don't really have a remote address
}
}
} catch (IOException ex) {
Expand Down

0 comments on commit f069811

Please sign in to comment.