Skip to content

Commit

Permalink
Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
UConnAIAA committed Sep 21, 2024
1 parent 4747351 commit 8997b9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hardware/RF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ RF::Command RF::GetCommand() // Will check for commands and return the received
if(ret != 1) // Return if no data
return RF::Command::None;

const int len = 512;
char buffer[len];
int len = read(SerialFd, buffer, len);
const int MAXLEN = 512;
char buffer[MAXLEN];
int len = read(SerialFd, buffer, MAXLEN);

std::cout << "GOT: " << buffer << "\n" << std::flush;

Expand Down

0 comments on commit 8997b9f

Please sign in to comment.