Skip to content

Commit

Permalink
Replay: Declare the type of the loop variable and consolidate the pro…
Browse files Browse the repository at this point in the history
…cessing
  • Loading branch information
muramura authored and peterbarker committed Sep 21, 2024
1 parent 863c3d3 commit cb1a156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/Replay/MsgHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ bool MsgHandler::field_value(uint8_t *msg, const char *label, char *ret, uint8_t
bool MsgHandler::field_value(uint8_t *msg, const char *label, Vector3f &ret)
{
const char *axes = "XYZ";
uint8_t i;
for(i=0; i<next_field; i++) {
for(uint8_t i=0; i<next_field; i++) {
if (!strncmp(field_info[i].label, label, strlen(label)) &&
strlen(field_info[i].label) == strlen(label)+1) {
for (uint8_t j=0; j<3; j++) {
Expand Down

0 comments on commit cb1a156

Please sign in to comment.