diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index bc2a41ad86..fe833fab43 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -1426,7 +1426,7 @@ const clivalue_t valueTable[] = { { "osd_rcchannels", VAR_INT8 | MASTER_VALUE | MODE_ARRAY, .config.array.length = OSD_RCCHANNELS_COUNT, PG_OSD_CONFIG, offsetof(osdConfig_t, rcChannels) }, { "osd_camera_frame_width", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { OSD_CAMERA_FRAME_MIN_WIDTH, OSD_CAMERA_FRAME_MAX_WIDTH }, PG_OSD_CONFIG, offsetof(osdConfig_t, camera_frame_width) }, { "osd_camera_frame_height", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { OSD_CAMERA_FRAME_MIN_HEIGHT, OSD_CAMERA_FRAME_MAX_HEIGHT }, PG_OSD_CONFIG, offsetof(osdConfig_t, camera_frame_height) }, - { "osd_task_frequency", VAR_UINT8 | MASTER_VALUE, .config.minmaxUnsigned = { OSD_TASK_FREQUENCY_MIN, OSD_TASK_FREQUENCY_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, task_frequency) }, + { "osd_task_frequency", VAR_UINT16 | MASTER_VALUE, .config.minmaxUnsigned = { OSD_TASK_FREQUENCY_MIN, OSD_TASK_FREQUENCY_MAX }, PG_OSD_CONFIG, offsetof(osdConfig_t, task_frequency) }, #endif // end of #ifdef USE_OSD // PG_SYSTEM_CONFIG diff --git a/src/main/osd/osd.h b/src/main/osd/osd.h index 03ec39d76c..303e28dfc6 100644 --- a/src/main/osd/osd.h +++ b/src/main/osd/osd.h @@ -287,7 +287,7 @@ typedef struct osdConfig_s { uint8_t logo_on_arming_duration; // display duration in 0.1s units uint8_t camera_frame_width; // The width of the box for the camera frame element uint8_t camera_frame_height; // The height of the box for the camera frame element - uint8_t task_frequency; + uint16_t task_frequency; } osdConfig_t; PG_DECLARE(osdConfig_t, osdConfig);