mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
uavcannode: fix compile error in BatteryInfo.hpp (#25944)
This commit is contained in:
parent
e0137fe7a7
commit
229b53d25d
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user