From feeb1c2d17243f08dbd32fa923a94e97d68fd7dd Mon Sep 17 00:00:00 2001 From: "Michael P. Scherer" Date: Sun, 21 Jan 2018 22:09:05 -0600 Subject: [PATCH] Patch to try to recognize SP200 ping messages TODO: This isn't a permanent fix, there's probably some better indicator than the message's size. Now that we've got two logs to work with from different devices this may become clearer. --- library/sonarphony/sonarMsg.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/sonarphony/sonarMsg.C b/library/sonarphony/sonarMsg.C index d678a77..96c45bf 100644 --- a/library/sonarphony/sonarMsg.C +++ b/library/sonarphony/sonarMsg.C @@ -112,7 +112,8 @@ sonarMsg_t::type_t sonarMsg_t::type () const { case 10: return T_BUSY; case 32: return T_HANDSHAKE; - case 340: return T_PING; + case 340: return T_PING; // T-POD + case 360: return T_PING; // SP200 default: return T_UNKNOWN; } }