frux-c 2 лет назад
Родитель
Сommit
e91a0d4dae
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      scenes/uhf_scene_settings.c
  2. 1 1
      uhf_module_settings.h

+ 1 - 1
scenes/uhf_scene_settings.c

@@ -102,8 +102,8 @@ void uhf_scene_settings_on_enter(void* ctx) {
         WORKING_REGIONS_COUNT,
         uhf_settings_set_module_working_region,
         uhf_module);
-    
     variable_item_set_current_value_text(item, WORKING_REGIONS_STR[value_index]);
+    variable_item_set_current_value_index(item, value_index);
 
     view_dispatcher_switch_to_view(uhf_app->view_dispatcher, UHFViewVariableItemList);
 }

+ 1 - 1
uhf_module_settings.h

@@ -18,7 +18,7 @@ static const uint8_t BAUD_RATES_COUNT = sizeof(BAUD_RATES) / sizeof(BAUD_RATES[0
 static const uint8_t POWER_DBM[] = {12, 14, 17, 20}; // To be determined ...
 static const uint8_t POWER_DBM_COUNT = sizeof(POWER_DBM) / sizeof(POWER_DBM[0]);
 // UHF WorkingArea
-static const char* WORKING_REGIONS_STR[] = {"China(900)MHz", "US", "EU", "China(800)MHz", "Korea"};
+static const char* WORKING_REGIONS_STR[] = {"CN1", "US", "EU", "CN2", "KR"};
 static const uint8_t __working_region_str = sizeof(WORKING_REGIONS_STR) / sizeof(WORKING_REGIONS_STR[0]);
 static const WorkingRegion WORKING_REGIONS[] = {WR_CHINA_900, WR_US, WR_EU, WR_CHINA_800, WR_KOREA};
 static const uint8_t WORKING_REGIONS_COUNT = sizeof(WORKING_REGIONS) / sizeof(WORKING_REGIONS[0]);