Skip to content

Commit

Permalink
coloca parenteses
Browse files Browse the repository at this point in the history
  • Loading branch information
adornelas committed Jul 28, 2023
1 parent 9362ba9 commit 9f1ef65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ double vr = 0;
void OnDataRecv(uint8_t * mac, uint8_t *incomingData, uint8_t len)
{
memcpy(&vel, incomingData, sizeof(vel));
if(vel.id == ROBOT_NUMBER)
if(vel.id == ROBOT_NUMBER){
vl = vel.vl;
vr = vel.vr;
lastReceived = micros();
}
}

void setup() {
Expand Down

0 comments on commit 9f1ef65

Please sign in to comment.