diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 03:59:02 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-22 03:59:02 -0500 |
commit | 1f5a3c2804333aec7258129e55a2726c56a1245a (patch) | |
tree | 64a5790644e5af792c971be30eeea86f956e71ef /servers/sensor_monitor_server_lin/src | |
parent | 3ecb5d9be7d2099cb75f4644bcf87441fd820fd2 (diff) | |
download | ulab-1f5a3c2804333aec7258129e55a2726c56a1245a.tar.gz ulab-1f5a3c2804333aec7258129e55a2726c56a1245a.zip |
Fix sensor client server
Diffstat (limited to 'servers/sensor_monitor_server_lin/src')
-rw-r--r-- | servers/sensor_monitor_server_lin/src/sensor_conn.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/servers/sensor_monitor_server_lin/src/sensor_conn.cpp b/servers/sensor_monitor_server_lin/src/sensor_conn.cpp index 86b8db0..60a42c9 100644 --- a/servers/sensor_monitor_server_lin/src/sensor_conn.cpp +++ b/servers/sensor_monitor_server_lin/src/sensor_conn.cpp @@ -285,6 +285,11 @@ void SensorSocket::commandLoop() { ds << TQString("PONG"); writeEndOfFrame(); } + else if (command == "RESET") { + clearFrameTail(); + ds << TQString("RESET"); + writeEndOfFrame(); + } else { clearFrameTail(); printf("[WARNING] Received unknown command %s from host %s\n\r", command.ascii(), m_remoteHost.ascii()); fflush(stdout); |