mirror of https://github.com/ArduPilot/ardupilot
Replay: Declare the type of the loop variable and consolidate the processing
This commit is contained in:
parent
863c3d3140
commit
cb1a156987
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue