1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

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

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