From e2bc9599ac497b62f11ac138fa2628ce0849249c Mon Sep 17 00:00:00 2001 From: Richard Li Date: Tue, 13 Jun 2023 13:30:16 +0800 Subject: [PATCH] Fixed a typo. --- radio/src/telemetry/flysky_ibus.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radio/src/telemetry/flysky_ibus.cpp b/radio/src/telemetry/flysky_ibus.cpp index 006afe180f3..2fe803590e5 100644 --- a/radio/src/telemetry/flysky_ibus.cpp +++ b/radio/src/telemetry/flysky_ibus.cpp @@ -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 @@ -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;