diff --git a/src/main/osd/osd.c b/src/main/osd/osd.c index eed3f6a4ef..9d51924889 100644 --- a/src/main/osd/osd.c +++ b/src/main/osd/osd.c @@ -139,7 +139,7 @@ escSensorData_t *osdEscDataCombined; STATIC_ASSERT(OSD_POS_MAX == OSD_POS(31,31), OSD_POS_MAX_incorrect); -PG_REGISTER_WITH_RESET_FN(osdConfig_t, osdConfig, PG_OSD_CONFIG, 6); +PG_REGISTER_WITH_RESET_FN(osdConfig_t, osdConfig, PG_OSD_CONFIG, 7); // Controls the display order of the OSD post-flight statistics. // Adjust the ordering here to control how the post-flight stats are presented. diff --git a/src/main/osd/osd.h b/src/main/osd/osd.h index 2ab546a851..5ffa25a241 100644 --- a/src/main/osd/osd.h +++ b/src/main/osd/osd.h @@ -144,6 +144,10 @@ typedef enum { OSD_ITEM_COUNT // MUST BE LAST } osd_items_e; +// *** IMPORTANT *** +// Whenever new elements are added to 'osd_items_e', make sure to increment +// the parameter group version for 'osdConfig' in 'osd.c' + // *** IMPORTANT *** // DO NOT REORDER THE STATS ENUMERATION. The order here cooresponds to the enabled flag bit position // storage and changing the order will corrupt user settings. Any new stats MUST be added to the end