Skip to content

Commit

Permalink
revert message length for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
p-h-a-i-l committed Nov 16, 2019
1 parent c949a0b commit 3f4534a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/HoverboardAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void HoverboardAPI::scheduleTransmission(Codes code, int count, unsigned int per
writevals->cmd = PROTOCOL_CMD_READVALRESPONSE; // This should prevent further processing
writevals->code = Codes::protocolSubscriptions;
newMsg.SOM = PROTOCOL_SOM_NOACK;
newMsg.len = sizeof(writevals->cmd) + sizeof(writevals->code) + sizeof(PROTOCOL_SUBSCRIBEDATA) + 1; // 1 for Checksum
newMsg.len = sizeof(writevals->cmd) + sizeof(writevals->code) + sizeof(PROTOCOL_SUBSCRIBEDATA);


if(s.params[Codes::protocolSubscriptions] && s.params[Codes::protocolSubscriptions]->fn) {
Expand Down
2 changes: 1 addition & 1 deletion src/hbprotocol

0 comments on commit 3f4534a

Please sign in to comment.