AP_Motors: tweak logging structure construction
const and avoid assignment rather just do initialisation allows for static checking of narrowing conversions
This commit is contained in:
parent
1d8a62f064
commit
bd4aed80dc
@ -398,7 +398,7 @@ void AP_MotorsMulticopter::update_lift_max_from_batt_voltage()
|
||||
// 10hz logging of voltage scaling and max trust
|
||||
void AP_MotorsMulticopter::Log_Write()
|
||||
{
|
||||
struct log_MotBatt pkt_mot = {
|
||||
const struct log_MotBatt pkt_mot {
|
||||
LOG_PACKET_HEADER_INIT(LOG_MOTBATT_MSG),
|
||||
time_us : AP_HAL::micros64(),
|
||||
lift_max : _lift_max,
|
||||
|
Loading…
Reference in New Issue
Block a user