Show battery value or percent

This commit is contained in:
kevin
2023-08-03 18:57:06 +08:00
parent 4c27b372cc
commit c85bb22cc0
6 changed files with 13784 additions and 13329 deletions
+3740 -3656
View File
File diff suppressed because it is too large Load Diff
+9873 -9652
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -42,6 +42,11 @@ enum RADIO_HARDWARE_MODEL {
RADIO_HARDWARE_CNT
};
enum RADIO_BATTERY_SELECTION {
BATTERY_NONE = 0, BATTERY_VALUE, BATTERY_PERCENT,
RADIO_BATTERY_CNT
};
static const char* const PTY_EU[] {
"None",
"News",
+7 -2
View File
@@ -19,6 +19,10 @@
#define BAT_LEVEL_WARN 1700
#define BAT_LEVEL_FULL 2270
#define BAT_LEVEL_STAGE 4
#define BATTERY_WARN_VALUE 3.68
#define BATTERY_LOW_VALUE 3.0
#define BATTERY_FULL_VALUE 4.2
#define LANGUAGE_CHS 14
@@ -97,9 +101,9 @@
// EEPROM index defines
#define EE_PRESETS_CNT 30
#define EE_CHECKBYTE_VALUE 36 // 0 ~ 255,add new entry, change for new value
#define EE_CHECKBYTE_VALUE 32 // 0 ~ 255,add new entry, change for new value
#define EE_TOTAL_CNT 273
#define EE_TOTAL_CNT 274
#define EE_UINT16_FREQUENCY_FM 0
#define EE_BYTE_VOLSET 4
#define EE_BYTE_STEREO 5
@@ -164,6 +168,7 @@
#define EE_BYTE_UNIT 267
#define EE_BYTE_AF 268
#define EE_UINT16_FREQUENCY_OIRT 269
#define EE_BYTE_BATTERY_OPTIONS 273
// End of EEPROM index defines
static const char* const unitString[] = {"dBμV", "dBf", "dBm"};
+68 -17
View File
@@ -1,6 +1,6 @@
// [number of languages][number of texts][max. length of text]
static const char* const myLanguage[16][173] = {
static const char* const myLanguage[16][176] = {
{ "English", // English
"Rotary direction changed", // 1
"Please release button", // 2
@@ -173,7 +173,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Nederlands", // Dutch
@@ -348,7 +351,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Polski", // Polish
@@ -523,7 +529,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Hrvatski", // Croatian
@@ -698,7 +707,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Ελληνικά", // Greek
@@ -873,7 +885,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Μανταρινί", // 170
"Ωκεανός", // 171
"Ινδικό" // 172
"Ινδικό", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Romana", // Romanian
@@ -1048,7 +1063,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Deutsch", // German
@@ -1223,7 +1241,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Czech", // Czech
@@ -1398,7 +1419,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Slovak", // Slovak
@@ -1573,7 +1597,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Français", // French
@@ -1748,7 +1775,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Mandarine", // 170
"Océan", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Български", // Bulgarian
@@ -1923,7 +1953,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Русский", // Russian
@@ -2098,7 +2131,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Мандариновый", // 170
"Океан", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Українська", // Ukranian
@@ -2273,7 +2309,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Мандариновий", // 170
"Океан", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Italiano", // Italian
@@ -2448,7 +2487,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo" // 172
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
},
{ "Simplified Chinese", // Simplified Chinese
@@ -2623,7 +2665,10 @@ static const char* const myLanguage[16][173] = {
" ", // 169
"桔红", // 170
"海之蓝", // 171
"Indigo" // 172
"靛青", // 172
"显示电池", // 173
"电压值", // 174
"电池百分比" // 175
},
{ "Norsk", // Norwegian
@@ -2795,7 +2840,13 @@ static const char* const myLanguage[16][173] = {
"Identifikator", // 166
"Kjøp", // 167
"Få data", // 168
"" // 169
" ", // 169
"Tangerine", // 170
"Ocean", // 171
"Indigo", // 172
"Battery options", // 173
"Show battery value", // 174
"Show battery percent" // 175
}
};