mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_OSD: fix param type cast
Presumably a typo from back when.
This commit is contained in:
committed by
Thomas Watson
parent
18bbf64f41
commit
4c797a0374
@@ -258,7 +258,7 @@ void AP_OSD_ParamScreen::draw_parameter(uint8_t number, uint8_t x, uint8_t y)
|
||||
break;
|
||||
}
|
||||
case AP_PARAM_INT32: {
|
||||
int32_t val = ((AP_Int16*)p)->get();
|
||||
int32_t val = ((AP_Int32*)p)->get();
|
||||
if (metadata != nullptr && val >= 0 && val < metadata->values_max) {
|
||||
backend->write(value_pos, y, value_blink, "%s", metadata->values[val]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user