summaryrefslogtreecommitdiffstats
path: root/servers/sensor_monitor_server_lin/src
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-22 03:59:02 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-22 03:59:02 -0500
commit1f5a3c2804333aec7258129e55a2726c56a1245a (patch)
tree64a5790644e5af792c971be30eeea86f956e71ef /servers/sensor_monitor_server_lin/src
parent3ecb5d9be7d2099cb75f4644bcf87441fd820fd2 (diff)
downloadulab-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.cpp5
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);