AP_OSD: fix param type cast

Presumably a typo from back when.
This commit is contained in:
Thomas Watson
2025-11-16 14:44:33 -06:00
committed by Thomas Watson
parent 18bbf64f41
commit 4c797a0374
+1 -1
View File
@@ -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 {