1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #2136 from AndersHoglund/fic_cppcheck_issues

Fix cppcheck error, uninitialized var.
This commit is contained in:
borisbstyle 2017-01-16 17:26:42 +01:00 committed by GitHub
commit 663206debf

View file

@ -186,7 +186,7 @@ bool escSensorInit(void)
// Initialize serial port
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;
}