mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Fix cppcheck error, uninitialized var.
This commit is contained in:
parent
b60bc0a2e1
commit
69e898a5f2
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ bool escSensorInit(void)
|
||||||
// Initialize serial port
|
// Initialize serial port
|
||||||
escSensorPort = openSerialPort(portConfig->identifier, FUNCTION_ESC_SENSOR, escSensorDataReceive, ESC_SENSOR_BAUDRATE, MODE_RX, options);
|
escSensorPort = openSerialPort(portConfig->identifier, FUNCTION_ESC_SENSOR, escSensorDataReceive, ESC_SENSOR_BAUDRATE, MODE_RX, options);
|
||||||
|
|
||||||
for (int i; i < MAX_SUPPORTED_MOTORS; i = i + 1) {
|
for (int i = 0; i < MAX_SUPPORTED_MOTORS; i = i + 1) {
|
||||||
escSensorData[i].dataAge = ESC_DATA_INVALID;
|
escSensorData[i].dataAge = ESC_DATA_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue