Rename FUNCTION_TELEMETRY_ESC to FUNCTION_ESC_SENSOR
This commit is contained in:
parent
f0eebb5cd0
commit
e93133860f
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue