Skip to content

Commit

Permalink
Fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Jun 13, 2023
1 parent a197499 commit e2bc959
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radio/src/telemetry/flysky_ibus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ enum

AFHDS3_FRM_TEMP = 0x57, //virtual
AFHDS3_FRM_EXT_V = 0x58, //virtual
AFHDS2A_ID_PRES = 0x41, // Pressure

AFHDS2A_ID_TX_V = 0x7F, // TX Voltage

Expand Down Expand Up @@ -389,8 +388,8 @@ void processFlySkyPacket(const uint8_t * packet)
setFlyskyTelemetryValue(AFHDS2A_ID_TX_RSSI, 0, packet[0], UNIT_RAW, 0);

const uint8_t * buffer = packet + 1;
int sesnor = 0;
while (sesnor++ < 7) {
int sensor = 0;
while (sensor++ < 7) {
if (*buffer == SENSOR_TYPE_END) break;
processFlySkySensor(buffer, 0xAA);
buffer += 4;
Expand Down

0 comments on commit e2bc959

Please sign in to comment.