mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
voted_sensors_update: reduce flash usage by allowing compiler to dedup equal strings
reduces roughly 130 bytes. Almost enough to pass CI.
This commit is contained in:
parent
b97d432844
commit
a8645b51d5
@ -165,8 +165,8 @@ void VotedSensorsUpdate::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_gyro(report.device_id, topic_instance);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_ERR("gyro temp compensation init: failed to find device ID %u for instance %i",
|
||||
report.device_id, topic_instance);
|
||||
PX4_ERR("%s temp compensation init: failed to find device ID %u for instance %i",
|
||||
"gyro", report.device_id, topic_instance);
|
||||
_corrections.gyro_mapping[topic_instance] = 0;
|
||||
|
||||
} else {
|
||||
@ -189,8 +189,8 @@ void VotedSensorsUpdate::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_accel(report.device_id, topic_instance);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_ERR("accel temp compensation init: failed to find device ID %u for instance %i",
|
||||
report.device_id, topic_instance);
|
||||
PX4_ERR("%s temp compensation init: failed to find device ID %u for instance %i",
|
||||
"accel", report.device_id, topic_instance);
|
||||
_corrections.accel_mapping[topic_instance] = 0;
|
||||
|
||||
} else {
|
||||
@ -212,8 +212,8 @@ void VotedSensorsUpdate::parameters_update()
|
||||
int temp = _temperature_compensation.set_sensor_id_baro(report.device_id, topic_instance);
|
||||
|
||||
if (temp < 0) {
|
||||
PX4_ERR("baro temp compensation init: failed to find device ID %u for instance %i",
|
||||
report.device_id, topic_instance);
|
||||
PX4_ERR("%s temp compensation init: failed to find device ID %u for instance %i",
|
||||
"baro", report.device_id, topic_instance);
|
||||
_corrections.baro_mapping[topic_instance] = 0;
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user