mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-27 18:20:38 +08:00
uavcannode: fix compile error in BatteryInfo.hpp (#25944)
This commit is contained in:
1 parent
e0137fe7a7
commit
229b53d25d
1 file changed
+1
-1
@@ -86,7 +86,7 @@ public:
|
||||
|
||||
battery_info_aux.timestamp.usec = battery.timestamp;
|
||||
|
||||
for (uint8_t i = 0; i < battery.cell_count && i < battery.voltage_cell_v.size(); i++) {
|
||||
for (uint8_t i = 0; i < battery.cell_count && i < arraySize(battery_status_s::voltage_cell_v); i++) {
|
||||
battery_info_aux.voltage_cell.push_back(battery.voltage_cell_v[i]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user