Rename FUNCTION_TELEMETRY_ESC to FUNCTION_ESC_SENSOR

This commit is contained in:
Bas Delfos 2016-12-06 23:45:26 +01:00
parent f0eebb5cd0
commit e93133860f
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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;