From e93133860f92d112e37f29a368840fd1fec750df Mon Sep 17 00:00:00 2001 From: Bas Delfos Date: Tue, 6 Dec 2016 23:45:26 +0100 Subject: [PATCH] Rename FUNCTION_TELEMETRY_ESC to FUNCTION_ESC_SENSOR --- src/main/io/serial.h | 2 +- src/main/sensors/esc_sensor.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/io/serial.h b/src/main/io/serial.h index c8d7e31785..02f00d8238 100644 --- a/src/main/io/serial.h +++ b/src/main/io/serial.h @@ -37,7 +37,7 @@ typedef enum { FUNCTION_BLACKBOX = (1 << 7), // 128 FUNCTION_TELEMETRY_MAVLINK = (1 << 9), // 512 - FUNCTION_TELEMETRY_ESC = (1 << 10) // 1024 + FUNCTION_ESC_SENSOR = (1 << 10) // 1024 } serialPortFunction_e; typedef enum { diff --git a/src/main/sensors/esc_sensor.c b/src/main/sensors/esc_sensor.c index fc11fc89d6..af2c0aa11e 100644 --- a/src/main/sensors/esc_sensor.c +++ b/src/main/sensors/esc_sensor.c @@ -128,7 +128,7 @@ int16_t getEscSensorConsumption(void) bool escSensorInit(void) { - serialPortConfig_t *portConfig = findSerialPortConfig(FUNCTION_TELEMETRY_ESC); + serialPortConfig_t *portConfig = findSerialPortConfig(FUNCTION_ESC_SENSOR); if (!portConfig) { return false; } @@ -136,7 +136,7 @@ bool escSensorInit(void) portOptions_t options = (SERIAL_NOT_INVERTED); // Initialize serial port - escSensorPort = openSerialPort(portConfig->identifier, FUNCTION_TELEMETRY_ESC, escSensorDataReceive, ESC_SENSOR_BAUDRATE, MODE_RX, options); + escSensorPort = openSerialPort(portConfig->identifier, FUNCTION_ESC_SENSOR, escSensorDataReceive, ESC_SENSOR_BAUDRATE, MODE_RX, options); if (escSensorPort) { escSensorEnabled = true;