MSP_OSD Update: Add original battery status msg. (#24872)

Co-authored-by: Michael <mfs3ee@gmail.com>
This commit is contained in:
Michael Smith 2025-05-19 20:01:02 -04:00 committed by GitHub
parent 77894b7c83
commit 0f2012ba06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,6 +341,9 @@ void MspOsd::Run()
battery_status_s battery_status{};
_battery_status_sub.copy(&battery_status);
const auto msg_original = msp_osd::construct_BATTERY_STATE(battery_status);
this->Send(MSP_BATTERY_STATE, &msg_original);
const auto msg = msp_osd::construct_rendor_BATTERY_STATE(battery_status);
this->Send(MSP_CMD_DISPLAYPORT, &msg, sizeof(msp_rendor_battery_state_t));