1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Fix uninitialised loop variable in msp.c (#14479)

This commit is contained in:
mjs1441 2025-06-25 23:49:34 +01:00 committed by GitHub
parent 0d0c00f341
commit 7abb14335d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1830,7 +1830,7 @@ case MSP_NAME:
}
for (int i = 0; i < 8; i++) {
for (unsigned j; j < ARRAYLEN(gyroDeviceConfig(i)->customAlignment.raw); j++) {
for (unsigned j = 0; j < ARRAYLEN(gyroDeviceConfig(i)->customAlignment.raw); j++) {
sbufWriteU16(dst, i < GYRO_COUNT ? gyroDeviceConfig(i)->customAlignment.raw[j] : 0);
}
}