Replay: Declare the type of the loop variable and consolidate the processing

This commit is contained in:
muramura 2024-09-21 00:34:25 +09:00 committed by Peter Barker
parent 863c3d3140
commit cb1a156987
1 changed files with 1 additions and 2 deletions

View File

@ -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++) {