Skip to content

Commit

Permalink
fix: removed old reference to debug variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Bissas committed Feb 9, 2025
1 parent 7346c9d commit 5c060a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/deploii.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ void Deploii::send(MsgPack::str_t dataStreamID, const T (&data)[length]) {
memcpy(&msg.data, data, sizeof(T) * length);

packer.serialize(msg);
if (_debug) {
Serial.println("Sending array");
}
_handler->send(packer.data(), packer.size());
}

Expand All @@ -43,8 +40,11 @@ void Deploii::send(MsgPack::str_t dataStreamID, T data) {
msg.data = data;

packer.serialize(msg);
if (_debug) {
Serial.println("Sending single value");
}
_handler->send(packer.data(), packer.size());
}

// Forwards any arguments through the connect function into the corresponding overload at the handler
template <typename... Args>
void connect(Args&&... args) {
_handler->connect(_boardID, std::forward<Args>(args)...);
}

0 comments on commit 5c060a8

Please sign in to comment.