mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
Rename FUNCTION_TELEMETRY_ESC to FUNCTION_ESC_SENSOR
This commit is contained in:
parent
f0eebb5cd0
commit
e93133860f
2 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ typedef enum {
|
||||||
FUNCTION_BLACKBOX = (1 << 7), // 128
|
FUNCTION_BLACKBOX = (1 << 7), // 128
|
||||||
|
|
||||||
FUNCTION_TELEMETRY_MAVLINK = (1 << 9), // 512
|
FUNCTION_TELEMETRY_MAVLINK = (1 << 9), // 512
|
||||||
FUNCTION_TELEMETRY_ESC = (1 << 10) // 1024
|
FUNCTION_ESC_SENSOR = (1 << 10) // 1024
|
||||||
} serialPortFunction_e;
|
} serialPortFunction_e;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|
|
@ -128,7 +128,7 @@ int16_t getEscSensorConsumption(void)
|
||||||
|
|
||||||
bool escSensorInit(void)
|
bool escSensorInit(void)
|
||||||
{
|
{
|
||||||
serialPortConfig_t *portConfig = findSerialPortConfig(FUNCTION_TELEMETRY_ESC);
|
serialPortConfig_t *portConfig = findSerialPortConfig(FUNCTION_ESC_SENSOR);
|
||||||
if (!portConfig) {
|
if (!portConfig) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ bool escSensorInit(void)
|
||||||
portOptions_t options = (SERIAL_NOT_INVERTED);
|
portOptions_t options = (SERIAL_NOT_INVERTED);
|
||||||
|
|
||||||
// Initialize serial port
|
// 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) {
|
if (escSensorPort) {
|
||||||
escSensorEnabled = true;
|
escSensorEnabled = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue