Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jun 1, 2024
1 parent 7415e0f commit 7eda780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/float/float_transceiver/float_transceiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ void loop() {
int fracComponent = trunc((pressure - intComponent) * 10000);
char judgePacketBuffer[30];
snprintf(
judgePacketBuffer, 30, "ROS:SINGLE:%d:%lu,%d.%04d\0", TEAM_NUM, previousPressureReadTime, intComponent,
fracComponent);
judgePacketBuffer, 30, "ROS:SINGLE:%d:%lu,%d.%04d\0", TEAM_NUM, previousPressureReadTime,
intComponent, fracComponent);
Serial.println(judgePacketBuffer);

rf95.send(judgePacketBuffer, strlen(judgePacketBuffer));
Expand Down
2 changes: 1 addition & 1 deletion src/float/surface_transceiver/surface_transceiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ bool receivePacket() {
if (len < MAX_RESPONSE_LEN) {
// This packet is probably an ACK/NACK, but could be a simple packet for judges
byteBuffer[len] = '\0';
char *charBuffer = reinterpret_cast<char*>(byteBuffer);
char* charBuffer = reinterpret_cast<char*>(byteBuffer);
// If this is a "single" judge/calibration packet
if (strncmp(byteBuffer, "ROS:SINGLE:", 11) == 0) {
Serial.println(charBuffer);
Expand Down

0 comments on commit 7eda780

Please sign in to comment.