mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:58:53 +08:00
battery: pass connected flag in by setter
This commit is contained in:
@@ -404,7 +404,8 @@ Syslink::handle_message(syslink_message_t *msg)
|
||||
memcpy(&vbat, &msg->data[1], sizeof(float));
|
||||
//memcpy(&iset, &msg->data[5], sizeof(float));
|
||||
|
||||
_battery.updateBatteryStatus(t, vbat, -1, true);
|
||||
_battery.setConnected(true);
|
||||
_battery.updateBatteryStatus(t, vbat, -1);
|
||||
|
||||
// Update battery charge state
|
||||
if (charging) {
|
||||
|
||||
Reference in New Issue
Block a user