mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Merge branch 'testing-fix-for-timer-slot-miss' of ssh://github.com/Ralim/IronOS into testing-fix-for-timer-slot-miss
This commit is contained in:
2
.github/workflows/weblate.yml
vendored
2
.github/workflows/weblate.yml
vendored
@@ -21,5 +21,5 @@ jobs:
|
|||||||
|
|
||||||
_Translations from [Weblate](https://hosted.weblate.org/projects/ironos/main-firmware/)_
|
_Translations from [Weblate](https://hosted.weblate.org/projects/ironos/main-firmware/)_
|
||||||
pr_reviewer: "ralim"
|
pr_reviewer: "ralim"
|
||||||
pr_draft: false
|
pr_draft: true
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Мова:\n BY Беларуская",
|
"displayText": "Мова:\n BY Беларуская",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Език:\n BG Български",
|
"displayText": "Език:\n BG Български",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jazyk:\n CS Český",
|
"displayText": "Jazyk:\n CS Český",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Sprog:\n DA Dansk",
|
"displayText": "Sprog:\n DA Dansk",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Sprache:\n DE Deutsch",
|
"displayText": "Sprache:\n DE Deutsch",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Γλώσσα:\n GR Ελληνικά",
|
"displayText": "Γλώσσα:\n GR Ελληνικά",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Language:\n EN English",
|
"displayText": "Language:\n EN English",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"languageCode": "ES",
|
"languageCode": "ES",
|
||||||
"languageLocalName": "Castellano",
|
"languageLocalName": "Castellano",
|
||||||
"tempUnitFahrenheit": false,
|
"tempUnitFahrenheit": true,
|
||||||
"messagesWarn": {
|
"messagesWarn": {
|
||||||
"CJCCalibrationDone": {
|
"CJCCalibrationDone": {
|
||||||
"message": "Calibration\ndone!"
|
"message": "Calibration\ndone!"
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Idioma:\n ES Castellano",
|
"displayText": "Idioma:\n ES Castellano",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Kieli:\n FI Suomi",
|
"displayText": "Kieli:\n FI Suomi",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Langue:\n FR Français",
|
"displayText": "Langue:\n FR Français",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n HR Hrvatski",
|
"displayText": "Jezik:\n HR Hrvatski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Nyelv:\n HU Magyar",
|
"displayText": "Nyelv:\n HU Magyar",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -31,13 +31,13 @@
|
|||||||
"message": "Temperatura\nfuori controllo"
|
"message": "Temperatura\nfuori controllo"
|
||||||
},
|
},
|
||||||
"SettingsCalibrationWarning": {
|
"SettingsCalibrationWarning": {
|
||||||
"message": "Prima di riavviare assicurati che punta e impugnatura siano a temperatura ambiente!"
|
"message": "Prima di riavviare assicurati che la punta e l'impugnatura siano a temperatura ambiente!"
|
||||||
},
|
},
|
||||||
"CJCCalibrating": {
|
"CJCCalibrating": {
|
||||||
"message": "Calibrazione in corso"
|
"message": "Calibrazione in corso"
|
||||||
},
|
},
|
||||||
"SettingsResetWarning": {
|
"SettingsResetWarning": {
|
||||||
"message": "Ripristinare le impostazioni di default?"
|
"message": "Ripristinare le impostazioni predefinite?"
|
||||||
},
|
},
|
||||||
"UVLOWarningString": {
|
"UVLOWarningString": {
|
||||||
"message": "DC BASSA"
|
"message": "DC BASSA"
|
||||||
@@ -113,7 +113,7 @@
|
|||||||
},
|
},
|
||||||
"QCMaxVoltage": {
|
"QCMaxVoltage": {
|
||||||
"displayText": "Tensione\nQC",
|
"displayText": "Tensione\nQC",
|
||||||
"description": "Imposta la tensione massima negoziabile con un alimentatore Quick Charge [volt]"
|
"description": "Imposta la massima tensione negoziabile con un alimentatore Quick Charge [volt]"
|
||||||
},
|
},
|
||||||
"PDNegTimeout": {
|
"PDNegTimeout": {
|
||||||
"displayText": "Abilitazione\nUSB PD",
|
"displayText": "Abilitazione\nUSB PD",
|
||||||
@@ -233,11 +233,15 @@
|
|||||||
},
|
},
|
||||||
"SettingsReset": {
|
"SettingsReset": {
|
||||||
"displayText": "Ripristino\nimpostazioni",
|
"displayText": "Ripristino\nimpostazioni",
|
||||||
"description": "Ripristina le impostazioni di default"
|
"description": "Ripristina le impostazioni predefinite"
|
||||||
},
|
},
|
||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Lingua:\n IT Italiano",
|
"displayText": "Lingua:\n IT Italiano",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "Bluetooth LE\nabilitato",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "言語: 日本語",
|
"displayText": "言語: 日本語",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Kalba:\n LT Lietuvių",
|
"displayText": "Kalba:\n LT Lietuvių",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Språk:\n NB Norsk bm",
|
"displayText": "Språk:\n NB Norsk bm",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Taal:\n NL Nederlands",
|
"displayText": "Taal:\n NL Nederlands",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Spraak:\n NL_BE Vlaams",
|
"displayText": "Spraak:\n NL_BE Vlaams",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Język:\n PL Polski",
|
"displayText": "Język:\n PL Polski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Idioma:\n PT Português",
|
"displayText": "Idioma:\n PT Português",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Limbă:\n RO Română",
|
"displayText": "Limbă:\n RO Română",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Язык:\n RU Русский",
|
"displayText": "Язык:\n RU Русский",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jazyk:\n SK Slovenčina",
|
"displayText": "Jazyk:\n SK Slovenčina",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n SL Slovenščina",
|
"displayText": "Jezik:\n SL Slovenščina",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jезик:\n SR Српски",
|
"displayText": "Jезик:\n SR Српски",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Jezik:\n SR Srpski",
|
"displayText": "Jezik:\n SR Srpski",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Språk:\n SV Svenska",
|
"displayText": "Språk:\n SV Svenska",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Dil:\n TR Türkçe",
|
"displayText": "Dil:\n TR Türkçe",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Мова:\n UK Українська",
|
"displayText": "Мова:\n UK Українська",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "Ngôn ngu:\n VI Tieng Viet",
|
"displayText": "Ngôn ngu:\n VI Tieng Viet",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "語言: 廣東話",
|
"displayText": "語言: 廣東話",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "语言:简体中文",
|
"displayText": "语言:简体中文",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -238,6 +238,10 @@
|
|||||||
"LanguageSwitch": {
|
"LanguageSwitch": {
|
||||||
"displayText": "語言:正體中文",
|
"displayText": "語言:正體中文",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"BLEEnabled": {
|
||||||
|
"displayText": "BLE\n Enabled",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -396,6 +396,12 @@
|
|||||||
"maxLen": 7,
|
"maxLen": 7,
|
||||||
"maxLen2": 15,
|
"maxLen2": 15,
|
||||||
"description": "Changes the device language on multi-lingual builds."
|
"description": "Changes the device language on multi-lingual builds."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "BLEEnabled",
|
||||||
|
"maxLen": 7,
|
||||||
|
"maxLen2": 15,
|
||||||
|
"description": "Should BLE be enabled at boot time."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
#define HAS_POWER_DEBUG_MENU
|
#define HAS_POWER_DEBUG_MENU
|
||||||
#define HARDWARE_MAX_WATTAGE_X10 750
|
#define HARDWARE_MAX_WATTAGE_X10 750
|
||||||
#define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second
|
#define TIP_THERMAL_MASS 65 // X10 watts to raise 1 deg C in 1 second
|
||||||
|
#define BLE_ENABLED
|
||||||
#define NEEDS_VBUS_PROBE 0
|
#define NEEDS_VBUS_PROBE 0
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,7 +19,10 @@ void postRToSInit() {
|
|||||||
hall_effect_present = Si7210::init();
|
hall_effect_present = Si7210::init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ble_stack_start();
|
|
||||||
|
if (getSettingValue(SettingsOptions::BLEEnabled)) {
|
||||||
|
ble_stack_start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int16_t getRawHallEffect() {
|
int16_t getRawHallEffect() {
|
||||||
if (hall_effect_present) {
|
if (hall_effect_present) {
|
||||||
|
|||||||
@@ -51,9 +51,10 @@ enum SettingsOptions {
|
|||||||
OLEDBrightness = 34, // Brightness for the OLED display
|
OLEDBrightness = 34, // Brightness for the OLED display
|
||||||
LOGOTime = 35, // Duration the logo will be displayed for
|
LOGOTime = 35, // Duration the logo will be displayed for
|
||||||
CalibrateCJC = 36, // Toggle calibrate CJC at next boot
|
CalibrateCJC = 36, // Toggle calibrate CJC at next boot
|
||||||
|
BLEEnabled = 37, // Should BLE hardware be enabled if present
|
||||||
|
|
||||||
//
|
//
|
||||||
SettingsOptionsLength = 37, //
|
SettingsOptionsLength = 38, //
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ enum class SettingsItemIndex : uint8_t {
|
|||||||
PowerPulseDuration,
|
PowerPulseDuration,
|
||||||
SettingsReset,
|
SettingsReset,
|
||||||
LanguageSwitch,
|
LanguageSwitch,
|
||||||
|
BLEEnabled,
|
||||||
NUM_ITEMS,
|
NUM_ITEMS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
|
|||||||
{0, 99, 11, 33}, // OLEDBrightness
|
{0, 99, 11, 33}, // OLEDBrightness
|
||||||
{0, 5, 1, 1}, // LOGOTime
|
{0, 5, 1, 1}, // LOGOTime
|
||||||
{0, 1, 1, 0}, // CalibrateCJC
|
{0, 1, 1, 0}, // CalibrateCJC
|
||||||
|
{0, 1, 1, 1}, // BLEEnabled
|
||||||
|
|
||||||
};
|
};
|
||||||
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
static_assert((sizeof(settingsConstants) / sizeof(SettingConstants)) == ((int)SettingsOptions::SettingsOptionsLength));
|
||||||
|
|||||||
@@ -41,6 +41,9 @@ static void displayAdvancedSolderingScreens(void);
|
|||||||
static void displayAdvancedIDLEScreens(void);
|
static void displayAdvancedIDLEScreens(void);
|
||||||
static void displayScrollSpeed(void);
|
static void displayScrollSpeed(void);
|
||||||
static void displayPowerLimit(void);
|
static void displayPowerLimit(void);
|
||||||
|
#ifdef BLE_ENABLED
|
||||||
|
static void displayBLEEnabled(void);
|
||||||
|
#endif
|
||||||
#ifndef NO_DISPLAY_ROTATE
|
#ifndef NO_DISPLAY_ROTATE
|
||||||
static bool setDisplayRotation(void);
|
static bool setDisplayRotation(void);
|
||||||
static void displayDisplayRotation(void);
|
static void displayDisplayRotation(void);
|
||||||
@@ -255,15 +258,19 @@ const menuitem UIMenu[] = {
|
|||||||
{0, nullptr, nullptr, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::NUM_ITEMS, 0} // end of menu marker. DO NOT REMOVE
|
{0, nullptr, nullptr, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::NUM_ITEMS, 0} // end of menu marker. DO NOT REMOVE
|
||||||
};
|
};
|
||||||
const menuitem advancedMenu[] = {
|
const menuitem advancedMenu[] = {
|
||||||
/*
|
/*
|
||||||
* Power Limit
|
* BLE Enabled or not
|
||||||
* Calibrate CJC At Next Boot
|
* Power Limit
|
||||||
* Calibrate Input V
|
* Calibrate CJC At Next Boot
|
||||||
* Power Pulse
|
* Calibrate Input V
|
||||||
* -Power Pulse Delay
|
* Power Pulse
|
||||||
* -Power Pulse Duration
|
* -Power Pulse Delay
|
||||||
* Factory Reset
|
* -Power Pulse Duration
|
||||||
*/
|
* Factory Reset
|
||||||
|
*/
|
||||||
|
#ifdef BLE_ENABLED
|
||||||
|
{SETTINGS_DESC(SettingsItemIndex::BLEEnabled), nullptr, displayBLEEnabled, nullptr, SettingsOptions::BLEEnabled, SettingsItemIndex::BLEEnabled, 7}, /*Advanced idle screen*/
|
||||||
|
#endif
|
||||||
{SETTINGS_DESC(SettingsItemIndex::PowerLimit), nullptr, displayPowerLimit, nullptr, SettingsOptions::PowerLimit, SettingsItemIndex::PowerLimit, 5}, /*Power limit*/
|
{SETTINGS_DESC(SettingsItemIndex::PowerLimit), nullptr, displayPowerLimit, nullptr, SettingsOptions::PowerLimit, SettingsItemIndex::PowerLimit, 5}, /*Power limit*/
|
||||||
{SETTINGS_DESC(SettingsItemIndex::CalibrateCJC), setCalibrate, displayCalibrate, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::CalibrateCJC,
|
{SETTINGS_DESC(SettingsItemIndex::CalibrateCJC), setCalibrate, displayCalibrate, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::CalibrateCJC,
|
||||||
7}, /*Calibrate Cold Junktion Compensation at next boot*/
|
7}, /*Calibrate Cold Junktion Compensation at next boot*/
|
||||||
@@ -633,7 +640,9 @@ static void displayLogoTime(void) {
|
|||||||
static void displayAdvancedIDLEScreens(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::DetailedIDLE)); }
|
static void displayAdvancedIDLEScreens(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::DetailedIDLE)); }
|
||||||
|
|
||||||
static void displayAdvancedSolderingScreens(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::DetailedSoldering)); }
|
static void displayAdvancedSolderingScreens(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::DetailedSoldering)); }
|
||||||
|
#ifdef BLE_ENABLED
|
||||||
|
static void displayBLEEnabled(void) { OLED::drawCheckbox(getSettingValue(SettingsOptions::BLEEnabled)); }
|
||||||
|
#endif
|
||||||
static void displayPowerLimit(void) {
|
static void displayPowerLimit(void) {
|
||||||
|
|
||||||
if (getSettingValue(SettingsOptions::PowerLimit) == 0) {
|
if (getSettingValue(SettingsOptions::PowerLimit) == 0) {
|
||||||
|
|||||||
@@ -127,10 +127,20 @@ void gui_solderingMode(uint8_t jumpToSleep) {
|
|||||||
} else {
|
} else {
|
||||||
OLED::setCursor(67, 0);
|
OLED::setCursor(67, 0);
|
||||||
}
|
}
|
||||||
OLED::printNumber(x10WattHistory.average() / 10, 2, FontStyle::SMALL);
|
// Print wattage
|
||||||
OLED::print(SmallSymbolDot, FontStyle::SMALL);
|
{
|
||||||
OLED::printNumber(x10WattHistory.average() % 10, 1, FontStyle::SMALL);
|
uint32_t x10Watt = x10WattHistory.average();
|
||||||
OLED::print(SmallSymbolWatts, FontStyle::SMALL);
|
if (x10Watt > 999) { // If we exceed 99.9W we drop the decimal place to keep it all fitting
|
||||||
|
OLED::print(SmallSymbolSpace, FontStyle::SMALL);
|
||||||
|
OLED::printNumber(x10WattHistory.average() / 10, 3, FontStyle::SMALL);
|
||||||
|
OLED::print(SmallSymbolWatts, FontStyle::SMALL);
|
||||||
|
} else {
|
||||||
|
OLED::printNumber(x10WattHistory.average() / 10, 2, FontStyle::SMALL);
|
||||||
|
OLED::print(SmallSymbolDot, FontStyle::SMALL);
|
||||||
|
OLED::printNumber(x10WattHistory.average() % 10, 1, FontStyle::SMALL);
|
||||||
|
OLED::print(SmallSymbolWatts, FontStyle::SMALL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (OLED::getRotation()) {
|
if (OLED::getRotation()) {
|
||||||
OLED::setCursor(0, 8);
|
OLED::setCursor(0, 8);
|
||||||
|
|||||||
Reference in New Issue
Block a user