fix: use correct deprecated GPS coordinate format enum (#917)
The Config_DisplayConfig_GpsCoordinateFormat export doesn't exist in the protobufs package. The correct export is Config_DisplayConfig_DeprecatedGpsCoordinateFormat, which matches what's used in the validation schema. Added TODO comment explaining that this field is deprecated since protobufs 2.7.4 and should be migrated to DeviceUIConfig.gps_format when DeviceUI settings are implemented.
This commit is contained in:
@@ -50,6 +50,10 @@ export const Display = ({ onFormInit }: DisplayConfigProps) => {
|
|||||||
suffix: t("unit.second.plural"),
|
suffix: t("unit.second.plural"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// TODO: This field is deprecated since protobufs 2.7.4 and only has UNUSED=0 value.
|
||||||
|
// GPS format has been moved to DeviceUIConfig.gps_format with proper enum values (DEC, DMS, UTM, MGRS, OLC, OSGR, MLS).
|
||||||
|
// This should be removed once DeviceUI settings are implemented.
|
||||||
|
// See: packages/protobufs/meshtastic/device_ui.proto
|
||||||
{
|
{
|
||||||
type: "select",
|
type: "select",
|
||||||
name: "gpsFormat",
|
name: "gpsFormat",
|
||||||
@@ -57,7 +61,7 @@ export const Display = ({ onFormInit }: DisplayConfigProps) => {
|
|||||||
description: t("display.gpsDisplayUnits.description"),
|
description: t("display.gpsDisplayUnits.description"),
|
||||||
properties: {
|
properties: {
|
||||||
enumValue:
|
enumValue:
|
||||||
Protobuf.Config.Config_DisplayConfig_GpsCoordinateFormat,
|
Protobuf.Config.Config_DisplayConfig_DeprecatedGpsCoordinateFormat,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user