Compare commits

...

76 Commits

Author SHA1 Message Date
nonokirby
cc0dcbdcc2 Merge 14cca01f78 into 40655a9501 2025-02-25 22:01:44 +01:00
Leska
40655a9501 Updated Overall French Translations (#2085)
Some checks failed
Docs / deploy-docs (push) Has been cancelled
CI / build (MHP30) (push) Has been cancelled
CI / build (Pinecil) (push) Has been cancelled
CI / build (Pinecilv2) (push) Has been cancelled
CI / build (S60) (push) Has been cancelled
CI / build (S60P) (push) Has been cancelled
CI / build (T55) (push) Has been cancelled
CI / build (TS100) (push) Has been cancelled
CI / build (TS101) (push) Has been cancelled
CI / build (TS80) (push) Has been cancelled
CI / build (TS80P) (push) Has been cancelled
CI / build_multi-lang (Pinecil) (push) Has been cancelled
CI / build_multi-lang (Pinecilv2) (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / check_c-cpp (push) Has been cancelled
CI / check_python (push) Has been cancelled
CI / check_shell (push) Has been cancelled
CI / check_docs (push) Has been cancelled
CI / upload_metadata (push) Has been cancelled
* Updated French translation.

* Updated

* Update Translations/translation_FR.json (discip)

Co-authored-by: discip <53649486+discip@users.noreply.github.com>

* added missing options

For some reason the following options were missing:
* Cool Down Blink
* Reverse Temp Change Buttons

* Update translation_FR.json

* Update translation_FR.json

---------

Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2025-02-25 18:09:15 +01:00
Ben V. Brown
05158321ba Merge pull request #2082 from Ralim/pinecil-v2-tip-disconnected
Some checks failed
Docs / deploy-docs (push) Has been cancelled
CI / build (MHP30) (push) Has been cancelled
CI / build (Pinecil) (push) Has been cancelled
CI / check_python (push) Has been cancelled
CI / build (Pinecilv2) (push) Has been cancelled
CI / build (S60) (push) Has been cancelled
CI / build (S60P) (push) Has been cancelled
CI / build (T55) (push) Has been cancelled
CI / build (TS100) (push) Has been cancelled
CI / build (TS101) (push) Has been cancelled
CI / check_shell (push) Has been cancelled
CI / build (TS80) (push) Has been cancelled
CI / build (TS80P) (push) Has been cancelled
CI / build_multi-lang (Pinecil) (push) Has been cancelled
CI / build_multi-lang (Pinecilv2) (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / check_c-cpp (push) Has been cancelled
CI / check_docs (push) Has been cancelled
CI / upload_metadata (push) Has been cancelled
Dont adjust pinecilv2 max temp by Coe
2025-02-23 09:04:57 +11:00
Ben V. Brown
f810921b0c Merge pull request #2083 from tabudz/fix-CVE-2021-31571
Some checks are pending
Docs / deploy-docs (push) Waiting to run
CI / build (MHP30) (push) Waiting to run
CI / build (Pinecil) (push) Waiting to run
CI / build (Pinecilv2) (push) Waiting to run
CI / build (S60) (push) Waiting to run
CI / check_docs (push) Waiting to run
CI / build (S60P) (push) Waiting to run
CI / build (T55) (push) Waiting to run
CI / build (TS100) (push) Waiting to run
CI / build (TS101) (push) Waiting to run
CI / build (TS80) (push) Waiting to run
CI / build (TS80P) (push) Waiting to run
CI / build_multi-lang (Pinecil) (push) Waiting to run
CI / build_multi-lang (Pinecilv2) (push) Waiting to run
CI / upload_metadata (push) Blocked by required conditions
CI / tests (push) Waiting to run
CI / check_c-cpp (push) Waiting to run
CI / check_python (push) Waiting to run
CI / check_shell (push) Waiting to run
Fix: Potential Vulnerability in Cloned Function
2025-02-22 18:55:43 +11:00
tabudz
2b8568ce37 add assert for addition overflow on queue creation (#225) 2025-02-22 15:46:12 +08:00
Ben V. Brown
d122a9fb52 Dont adjust pinecilv2 max temp by Coe 2025-02-22 15:19:43 +11:00
Ben V. Brown
57c8a35041 Merge pull request #2081 from Ralim/pd-sink-cap
Some checks are pending
Docs / deploy-docs (push) Waiting to run
CI / check_docs (push) Waiting to run
CI / build (MHP30) (push) Waiting to run
CI / build (Pinecil) (push) Waiting to run
CI / build (Pinecilv2) (push) Waiting to run
CI / build (S60) (push) Waiting to run
CI / build (S60P) (push) Waiting to run
CI / build (T55) (push) Waiting to run
CI / build (TS100) (push) Waiting to run
CI / build (TS101) (push) Waiting to run
CI / build (TS80) (push) Waiting to run
CI / build (TS80P) (push) Waiting to run
CI / build_multi-lang (Pinecil) (push) Waiting to run
CI / build_multi-lang (Pinecilv2) (push) Waiting to run
CI / upload_metadata (push) Blocked by required conditions
CI / tests (push) Waiting to run
CI / check_c-cpp (push) Waiting to run
CI / check_python (push) Waiting to run
CI / check_shell (push) Waiting to run
USB-PD: Add minimal sink caps
2025-02-22 11:38:53 +11:00
Ben V. Brown
3ed86d2acf sink caps: Add default profiles 2025-02-22 11:35:49 +11:00
Ben V. Brown
7c6ce812f6 Add minimal sink caps 2025-02-22 11:24:02 +11:00
Ivan Zorin
c92bf89296 Merge pull request #2075 from ia/debug-time
Some checks failed
Docs / deploy-docs (push) Has been cancelled
CI / build (MHP30) (push) Has been cancelled
CI / build (Pinecil) (push) Has been cancelled
CI / build (Pinecilv2) (push) Has been cancelled
CI / build (S60) (push) Has been cancelled
CI / build (S60P) (push) Has been cancelled
CI / build (T55) (push) Has been cancelled
CI / build (TS100) (push) Has been cancelled
CI / build (TS101) (push) Has been cancelled
CI / build (TS80) (push) Has been cancelled
CI / build (TS80P) (push) Has been cancelled
CI / build_multi-lang (Pinecil) (push) Has been cancelled
CI / build_multi-lang (Pinecilv2) (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / check_c-cpp (push) Has been cancelled
CI / check_python (push) Has been cancelled
CI / check_shell (push) Has been cancelled
CI / check_docs (push) Has been cancelled
CI / upload_metadata (push) Has been cancelled
Debug Menu: add time of compilation to timestamp build
2025-02-19 09:43:07 +03:00
Ivan Zorin
8a392b5364 Add the notice about EPR/PPS disabled by default in the main README.md (#2074)
* README.md: Supported Hardware - add notice about EPR/PPS disabled by default.
2025-02-19 17:42:55 +11:00
Ivan Zorin
68aac2847b Debug Menu: update documentation about timestamp format 2025-02-13 07:59:20 +03:00
Ivan Zorin
dc2b91c879 Debug Menu: add time of compilation to timestamp build 2025-02-13 07:49:22 +03:00
nonokirby
14cca01f78 Update Soldering.cpp to enable standard locking for testing 2025-01-29 11:21:17 -05:00
Ivan Zorin
6a549b6acc Sync 2025-01-29 01:13:03 +03:00
Ivan Zorin
911ef59da4 Enable TEMP locking as option 2025-01-26 03:35:15 +03:00
Ivan Zorin
7e1dfc05a3 Sync 2025-01-26 02:00:28 +03:00
Ivan Zorin
7bf9620eb7 Help to Unify descriptions for new locking mode in definitions.json and in Settings.h 2025-01-24 23:42:43 +03:00
nonokirby
a712e8d478 Apply suggestions from code review to clean up wording and typos 2025-01-23 21:21:08 -05:00
nonokirby
d6c04a090b Update Soldering.cpp to fix formatting (again.....) 2025-01-21 22:10:51 -05:00
nonokirby
7869b28736 Update Soldering.cpp Fix formatting 2025-01-21 22:09:23 -05:00
nonokirby
06629c6d87 Update Soldering.cpp 2025-01-21 21:58:21 -05:00
nonokirby
98755f06a1 Update translation_ZH_TW.json 2025-01-21 21:42:36 -05:00
nonokirby
82a032819a Update translation_ZH_CN.json 2025-01-21 21:42:29 -05:00
nonokirby
daca0e66f8 Update translation_YUE_HK.json 2025-01-21 21:42:22 -05:00
nonokirby
e1340adf13 Update translation_VI.json 2025-01-21 21:42:14 -05:00
nonokirby
1b45b363f2 Update translation_UZ.json 2025-01-21 21:42:07 -05:00
nonokirby
78686a8e51 Update translation_UK.json 2025-01-21 21:41:54 -05:00
nonokirby
4286358d1d Update translation_TR.json 2025-01-21 21:41:46 -05:00
nonokirby
60e3f1d5af Update translation_SV.json 2025-01-21 21:41:36 -05:00
nonokirby
d9d421fe8f Update translation_SR_LATN.json 2025-01-21 21:41:27 -05:00
nonokirby
30c9ac805a Update translation_SR_CYRL.json 2025-01-21 21:41:19 -05:00
nonokirby
52c4087d3f Update translation_SL.json 2025-01-21 21:41:07 -05:00
nonokirby
a5259448b9 Update translation_SK.json 2025-01-21 21:40:57 -05:00
nonokirby
7c2664797e Update translation_RU.json 2025-01-21 21:40:46 -05:00
nonokirby
6e30c78c9d Update translation_RO.json 2025-01-21 21:40:36 -05:00
nonokirby
d7a58e50d4 Update translation_PT.json 2025-01-21 21:40:28 -05:00
nonokirby
050fa824c0 Update translation_PL.json 2025-01-21 21:40:19 -05:00
nonokirby
509e6a8ef4 Update translation_NL_BE.json 2025-01-21 21:40:11 -05:00
nonokirby
1e756b4b4a Update translation_NL.json 2025-01-21 21:39:59 -05:00
nonokirby
ea14714b36 Update translation_NB.json 2025-01-21 21:39:47 -05:00
nonokirby
67ecb2d766 Update translation_LT.json 2025-01-21 21:39:38 -05:00
nonokirby
32d9577e48 Update translation_JA_JP.json 2025-01-21 21:39:31 -05:00
nonokirby
0fa48ed345 Update translation_IT.json 2025-01-21 21:39:19 -05:00
nonokirby
211c172103 Update translation_HU.json 2025-01-21 21:39:13 -05:00
nonokirby
058f04f0cd Update translation_HR.json 2025-01-21 21:39:03 -05:00
nonokirby
84c61aa62a Update translation_FR.json 2025-01-21 21:38:50 -05:00
nonokirby
5a67f060d4 Update translation_FI.json 2025-01-21 21:38:31 -05:00
nonokirby
9d26f8b1b5 Update translation_ET.json 2025-01-21 21:38:13 -05:00
nonokirby
72a7cf3de2 Update translation_ES.json 2025-01-21 21:38:03 -05:00
nonokirby
0fdc05257a Update translation_EN.json 2025-01-21 21:37:51 -05:00
nonokirby
8c538a2ab0 Update translation_EN.json 2025-01-21 21:37:37 -05:00
nonokirby
f6c864d3b6 Update translation_EL.json 2025-01-21 21:37:27 -05:00
nonokirby
c2c1cab283 Update translation_DE.json 2025-01-21 21:37:12 -05:00
nonokirby
522822b268 Update translation_DA.json 2025-01-21 21:37:00 -05:00
nonokirby
b37c4209af Update translation_CS.json 2025-01-21 21:36:50 -05:00
nonokirby
eca4a230bc Update translation_BG.json 2025-01-21 21:36:27 -05:00
nonokirby
ff213aa06f Update translation_BE.json 2025-01-21 21:36:07 -05:00
nonokirby
4a1e946e25 Update translations_definitions.json 2025-01-21 20:55:41 -05:00
nonokirby
b005870033 Update Soldering.cpp to fix build complaining 2025-01-21 20:48:30 -05:00
nonokirby
07457af576 Update Soldering.cpp because i used the wrong symbol 2025-01-21 20:21:38 -05:00
nonokirby
7fc12dafbf Update Soldering.cpp to fix broken logic 2025-01-21 20:19:12 -05:00
nonokirby
cb667874b6 Update Settings.cpp 2025-01-21 20:05:41 -05:00
nonokirby
f759195339 Update translation_EN.json 2025-01-21 19:30:40 -05:00
nonokirby
5e8cd339ed Update Translation.h 2025-01-21 19:25:44 -05:00
nonokirby
ab5f5b23a6 Update settingsGUI.cpp to change display for locking mode 2025-01-21 19:17:30 -05:00
nonokirby
5b5200a8d8 Update Settings.cpp to revert addition of new setting 2025-01-21 18:41:39 -05:00
nonokirby
9e8bd8e790 Update Settings.h to add better descriptions 2025-01-21 18:40:14 -05:00
nonokirby
6632065ade Update Settings.h to change locking mode 2025-01-21 18:21:31 -05:00
nonokirby
fc7aaf2b56 Update Settings.cpp add BoostButtonTe 2025-01-21 17:51:32 -05:00
nonokirby
95493b48e7 Update Soldering.cpp to disable + activating temp only while boost mode setting is on 2025-01-21 00:04:48 -05:00
nonokirby
27de7f5db1 Update Settings.cpp 2025-01-21 00:03:46 -05:00
nonokirby
450d129d15 Update Settings.cpp 2025-01-21 00:01:08 -05:00
nonokirby
9b3effeaa6 Update Soldering.cpp with call to setting BoostButtonTempChange 2025-01-20 23:43:32 -05:00
nonokirby
2bd7b81589 Soldering Control Changes
Updated the readme file to reflect the changes to A/+ in soldering mode.
2025-01-20 18:30:50 -05:00
nonokirby
933e2ccd7f Disable change temp with B/+ in soldering mode
Disabled the change temp menu appearing when + is pressed in soldering mode to prevent accidental changes of temperature while using boost mode.
2025-01-20 17:56:49 -05:00
48 changed files with 181 additions and 156 deletions

View File

@@ -40,9 +40,9 @@ I.e.:
**Additional scroll-able items appear in this order**: **Additional scroll-able items appear in this order**:
### Date ### Timestamp
- This is a date of firmware compilation and it has the following format: `DD-MM-YY` (i.e., `01-07-23` means it has been built in July, 1st, 2023) - This is a timestamp of firmware compilation and it has the following format: `YYYYMMDD HHMMSS` (i.e., `20230701 213456` means it has been built in July, 1st, 2023 at 9:34:56 pm)
### ID ### ID

View File

@@ -23,7 +23,7 @@ _This firmware does **NOT** support the USB port while running for changing sett
## Supported Hardware ## Supported Hardware
| Device | DC | QC | PD | EPR | BLE | Tip Sense | Recommended Purchase | Notes | | Device | DC | QC | PD | EPR\*\*\*\* | BLE | Tip Sense | Recommended Purchase | Notes |
| :------------: | :-: | :-: | :-: | :-: | :-: | :-------: | :------------------: | :-------------------------------------: | | :------------: | :-: | :-: | :-: | :-: | :-: | :-------: | :------------------: | :-------------------------------------: |
| Miniware MHP30 | ❌ | ❌ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | | | Miniware MHP30 | ❌ | ❌ | ✔️ | ❌ | ❌ | ✔️ | ✔️ | |
| Pinecil V1 | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ \* | | | Pinecil V1 | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ \* | |
@@ -48,6 +48,9 @@ The _TS101_ & _S60(P)_ irons and _MHP30_ & _T55_ plates feature a higher resolut
\*\*\* _TS80_ is replaced by _TS80P_. Production ramped down a long time ago and it's just existing stock clearing the system. It's marked not recommended being optimistic that people might pause and buy the far superior _TS80P_ instead. This is the main reason why the _TS80_ is **_no longer recommended_**. \*\*\* _TS80_ is replaced by _TS80P_. Production ramped down a long time ago and it's just existing stock clearing the system. It's marked not recommended being optimistic that people might pause and buy the far superior _TS80P_ instead. This is the main reason why the _TS80_ is **_no longer recommended_**.
\*\*\*\* **EPR/PPS with 28V support** is _**disabled by default**_ due to [safety concerns](https://github.com/Ralim/IronOS/pull/2073), but to turn it back on set
_PD Mode_ option in _Power settings_ submenu to _Safe_ or _Default_.
## Getting Started ## Getting Started
To get started with _IronOS firmware_, please jump to [Getting Started Guide](https://ralim.github.io/IronOS/GettingStarted/). To get started with _IronOS firmware_, please jump to [Getting Started Guide](https://ralim.github.io/IronOS/GettingStarted/).

View File

@@ -152,7 +152,7 @@ def get_constants() -> List[Tuple[str, str]]:
def get_debug_menu() -> List[str]: def get_debug_menu() -> List[str]:
return [ return [
datetime.today().strftime("%Y-%m-%d"), datetime.today().strftime("%Y%m%d %H%M%S"),
"ID ", "ID ",
"ACC ", "ACC ",
"PWR ", "PWR ",

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Ч", "SettingStartSleepChar": "Ч",
"SettingStartSleepOffChar": "К", "SettingStartSleepOffChar": "К",
"SettingLockBoostChar": "Т", "SettingLockBoostChar": "Т",
"SettingLockFullChar": "П" "SettingLockFullChar": "П",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "С", "SettingStartSleepChar": "С",
"SettingStartSleepOffChar": "П", "SettingStartSleepOffChar": "П",
"SettingLockBoostChar": "Т", "SettingLockBoostChar": "Т",
"SettingLockFullChar": "П" "SettingLockFullChar": "П",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "S", "SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "M", "SettingStartSleepOffChar": "M",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "U" "SettingLockFullChar": "U",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "D", "SettingStartSleepChar": "D",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "R", "SettingStartSleepChar": "R",
"SettingStartSleepOffChar": "K", "SettingStartSleepOffChar": "K",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "V" "SettingLockFullChar": "V",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Ζ", "SettingStartSleepChar": "Ζ",
"SettingStartSleepOffChar": "Υ", "SettingStartSleepOffChar": "Υ",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "Π" "SettingLockFullChar": "Π",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "R", "SettingStartSleepChar": "R",
"SettingStartSleepOffChar": "F", "SettingStartSleepOffChar": "F",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "P", "SettingStartSleepOffChar": "P",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "T" "SettingLockFullChar": "T",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "L", "SettingStartSleepChar": "L",
"SettingStartSleepOffChar": "H", "SettingStartSleepOffChar": "H",
"SettingLockBoostChar": "V", "SettingLockBoostChar": "V",
"SettingLockFullChar": "K" "SettingLockFullChar": "K",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -4,7 +4,7 @@
"tempUnitFahrenheit": false, "tempUnitFahrenheit": false,
"messagesWarn": { "messagesWarn": {
"CalibrationDone": { "CalibrationDone": {
"message": "Étalonnage\nterminé!" "message": "Étalonnage\nterminé !"
}, },
"ResetOKMessage": { "ResetOKMessage": {
"message": "Reset OK" "message": "Reset OK"
@@ -19,37 +19,37 @@
"message": "USB-PD\nnon détecté !" "message": "USB-PD\nnon détecté !"
}, },
"LockingKeysString": { "LockingKeysString": {
"message": "VERROUIL" "message": "VERROUIL"
}, },
"UnlockingKeysString": { "UnlockingKeysString": {
"message": "DEVERROU" "message": "DEVERROUILLÉ"
}, },
"WarningKeysLockedString": { "WarningKeysLockedString": {
"message": "! VERR. !" "message": "! VERR. !"
}, },
"WarningThermalRunaway": { "WarningThermalRunaway": {
"message": "Emballement\nthermique" "message": "Surchauffe\ncritique"
}, },
"WarningTipShorted": { "WarningTipShorted": {
"message": "!Tip Shorted!" "message": "!Court-circuit Panne!"
}, },
"SettingsCalibrationWarning": { "SettingsCalibrationWarning": {
"message": "Avant de redémarrer, assurez-vous que la panne et la poignée sont à température ambiante !" "message": "Avant de redémarrer, assurez-vous que la panne et la poignée sont à température ambiante !"
}, },
"CJCCalibrating": { "CJCCalibrating": {
"message": "Etalonnage\n" "message": "Étalonnage\n"
}, },
"SettingsResetWarning": { "SettingsResetWarning": {
"message": "Voulez-vous vraiment réinitialiser les paramètres aux valeurs par défaut ?" "message": "Voulez-vous vraiment réinitialiser les paramètres aux valeurs par défaut ?"
}, },
"UVLOWarningString": { "UVLOWarningString": {
"message": "DC FAIBL" "message": "TENSION FAIBLE"
}, },
"UndervoltageString": { "UndervoltageString": {
"message": "Sous-tension\n" "message": "Sous-tension\n"
}, },
"InputVoltageString": { "InputVoltageString": {
"message": "V d'entrée: \n" "message": "Tension d'entrée:\n"
}, },
"SleepingAdvancedString": { "SleepingAdvancedString": {
"message": "En veille...\n" "message": "En veille...\n"
@@ -58,10 +58,10 @@
"message": "Panne: \n" "message": "Panne: \n"
}, },
"ProfilePreheatString": { "ProfilePreheatString": {
"message": "Preheat\n" "message": "Préchauffage\n"
}, },
"ProfileCooldownString": { "ProfileCooldownString": {
"message": "Cooldown\n" "message": "Refroidissement\n"
}, },
"DeviceFailedValidationWarning": { "DeviceFailedValidationWarning": {
"message": "Votre appareil semble être une contrefaçon !" "message": "Votre appareil semble être une contrefaçon !"
@@ -81,7 +81,8 @@
"SettingStartSleepChar": "V", "SettingStartSleepChar": "V",
"SettingStartSleepOffChar": "O", "SettingStartSleepOffChar": "O",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "V" "SettingLockFullChar": "V",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {
@@ -107,22 +108,22 @@
}, },
"menuValues": { "menuValues": {
"USBPDModeDefault": { "USBPDModeDefault": {
"displayText": "Default\nMode" "displayText": "Mode\npar Défaut"
}, },
"USBPDModeNoDynamic": { "USBPDModeNoDynamic": {
"displayText": "No\nDynamic" "displayText": "Non\nDynamique"
}, },
"USBPDModeSafe": { "USBPDModeSafe": {
"displayText": "Safe\nMode" "displayText": "Mode\nSafe"
}, },
"TipTypeAuto": { "TipTypeAuto": {
"displayText": "Auto\nSense" "displayText": "Détéction\nAuto."
}, },
"TipTypeT12Long": { "TipTypeT12Long": {
"displayText": "TS100\nLong" "displayText": "TS100\nLong"
}, },
"TipTypeT12Short": { "TipTypeT12Short": {
"displayText": "Pine\nShort" "displayText": "Pine\nCourt"
}, },
"TipTypeT12PTS": { "TipTypeT12PTS": {
"displayText": "PTS\n200" "displayText": "PTS\n200"
@@ -137,11 +138,11 @@
"menuOptions": { "menuOptions": {
"DCInCutoff": { "DCInCutoff": {
"displayText": "Source\nd'alim.", "displayText": "Source\nd'alim.",
"description": "Source d'alimentation. Règle la tension de coupure (DC 10V) (S 3.3V par cellules, désactive la limite de puissance)" "description": "Source d'alimentation. Définit la tension de coupure (DC 10V) (S 3.3V par cellule, désactive la limite de puissance)"
}, },
"MinVolCell": { "MinVolCell": {
"displayText": "Tension\nminimale", "displayText": "Tension\nminimale",
"description": "Tension minimale autorisée par cellule (3S: 3 - 3.7V | 4-6S: 2.4 - 3.7V)" "description": "Tension minimale autorisée par cellule (3S : 3 - 3.7V | 4-6S : 2.4 - 3.7V)"
}, },
"QCMaxVoltage": { "QCMaxVoltage": {
"displayText": "Tension\nQC", "displayText": "Tension\nQC",
@@ -149,18 +150,18 @@
}, },
"PDNegTimeout": { "PDNegTimeout": {
"displayText": "Délai\nexpir. PD", "displayText": "Délai\nexpir. PD",
"description": "Délai de la negociation PD par étapes de 100ms pour la compatiblité avec certains chargeurs QC" "description": "Délai de gociation PD par paliers de 100ms pour la compatibilité avec certains chargeurs QC"
}, },
"USBPDMode": { "USBPDMode": {
"displayText": "PD\nMode", "displayText": "Mode\nPD",
"description": "No Dynamic disables EPR & PPS, Safe mode does not use padding resistance" "description": "Aucune dynamique ne désactive EPR & PPS, le mode sécurisé n'utilise pas de résistance de protection"
}, },
"BoostTemperature": { "BoostTemperature": {
"displayText": "Temp.\nboost", "displayText": "Temp.\nboost",
"description": "Température utilisée en \"mode boost\"" "description": "Température utilisée en \"mode boost\""
}, },
"AutoStart": { "AutoStart": {
"displayText": "Chauffer au\ndémarrage", "displayText": "Chauffer audémarrage",
"description": "A=activé | V=mode veille | O=mode veille à température ambiante" "description": "A=activé | V=mode veille | O=mode veille à température ambiante"
}, },
"TempChangeShortStep": { "TempChangeShortStep": {
@@ -177,23 +178,23 @@
}, },
"ProfilePhases": { "ProfilePhases": {
"displayText": "Profile\nPhases", "displayText": "Profile\nPhases",
"description": "Number of phases in profile mode" "description": "Nombre de phases dans le mode de profile"
}, },
"ProfilePreheatTemp": { "ProfilePreheatTemp": {
"displayText": "Preheat\nTemp", "displayText": "Temp.\nPréchauffage",
"description": "Preheat to this temperature at the start of profile mode" "description": "Préchauffer à cette température au début du mode de profile"
}, },
"ProfilePreheatSpeed": { "ProfilePreheatSpeed": {
"displayText": "Preheat\nSpeed", "displayText": "Vitesse\nPréchauffage",
"description": "Preheat at this rate (degrees per second)" "description": "Préchauffer à cette vitesse (degrés par seconde)"
}, },
"ProfilePhase1Temp": { "ProfilePhase1Temp": {
"displayText": "Phase 1\nTemp", "displayText": "Temp.\nPhase 1",
"description": "Target temperature for the end of this phase" "description": "Température séléctionnée pour la fin de cette phase"
}, },
"ProfilePhase1Duration": { "ProfilePhase1Duration": {
"displayText": "Phase 1\nDuration", "displayText": "Durée\nPhase 1",
"description": "Target duration of this phase (seconds)" "description": "Durée séléctionnée pour cette phase (secondes)"
}, },
"ProfilePhase2Temp": { "ProfilePhase2Temp": {
"displayText": "Phase 2\nTemp", "displayText": "Phase 2\nTemp",
@@ -228,12 +229,12 @@
"description": "" "description": ""
}, },
"ProfileCooldownSpeed": { "ProfileCooldownSpeed": {
"displayText": "Cooldown\nSpeed", "displayText": "Vitesse de\nRefroidissement",
"description": "Cooldown at this rate at the end of profile mode (degrees per second)" "description": "Refroidissement à ce rythme à la fin du mode profil (degrés par seconde)"
}, },
"MotionSensitivity": { "MotionSensitivity": {
"displayText": "Sensibilité\nau mouvement", "displayText": "Sensibilité\nau mouvement",
"description": "1=peu sensible | ... | 9=très sensible" "description": "1=très peu sensible | ... | 9=extrêmement sensible"
}, },
"SleepTemperature": { "SleepTemperature": {
"displayText": "Temp.\nveille", "displayText": "Temp.\nveille",
@@ -252,15 +253,15 @@
"description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)" "description": "Sensibilité du capteur à effet Hall pour la mise en veille (1=peu sensible | ... | 9=très sensible)"
}, },
"HallEffSleepTimeout": { "HallEffSleepTimeout": {
"displayText": "HallSensor\nSleepTime", "displayText": "TempsVeille\nCapteurHall",
"description": "Intervalle avant le démarrage du \"mode veille\" lorsque l'effet Hall est supérieur au seuil" "description": "Intervalle avant le démarrage du \"mode veille\" lorsque l'effet Hall est supérieur au seuil"
}, },
"TemperatureUnit": { "TemperatureUnit": {
"displayText": "Unité de\ntempérature", "displayText": "Unité de température",
"description": "C=Celsius | F=Fahrenheit" "description": "C=Celsius | F=Fahrenheit"
}, },
"DisplayRotation": { "DisplayRotation": {
"displayText": "Orientation\nde l'écran", "displayText": "Orientation de l'écran",
"description": "D=droitier | G=gaucher | A=automatique" "description": "D=droitier | G=gaucher | A=automatique"
}, },
"CooldownBlink": { "CooldownBlink": {
@@ -268,7 +269,7 @@
"description": "Faire clignoter la température lors du refroidissement tant que la panne est chaude" "description": "Faire clignoter la température lors du refroidissement tant que la panne est chaude"
}, },
"ScrollingSpeed": { "ScrollingSpeed": {
"displayText": "Vitesse de\ndéfilement", "displayText": "Vitesse de défilement",
"description": "Vitesse de défilement du texte (R=rapide | L=lent)" "description": "Vitesse de défilement du texte (R=rapide | L=lent)"
}, },
"ReverseButtonTempChange": { "ReverseButtonTempChange": {
@@ -276,7 +277,7 @@
"description": "Inverser les boutons d'ajustement de température" "description": "Inverser les boutons d'ajustement de température"
}, },
"AnimSpeed": { "AnimSpeed": {
"displayText": "Vitesse\nanim. icônes", "displayText": "Vitesse anim. icônes",
"description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)" "description": "Vitesse des animations des icônes dans le menu (L=lente | M=moyenne | R=rapide)"
}, },
"AnimLoop": { "AnimLoop": {
@@ -340,8 +341,8 @@
"description": "" "description": ""
}, },
"SolderingTipType": { "SolderingTipType": {
"displayText": "Soldering\nTip Type", "displayText": "Soudure\nType de panne",
"description": "Select the tip type fitted" "description": "Séléctionner le type de panne utilisé"
} }
} }
} }

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "T", "SettingStartSleepChar": "T",
"SettingStartSleepOffChar": "H", "SettingStartSleepOffChar": "H",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "Z" "SettingLockFullChar": "Z",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "A", "SettingStartSleepChar": "A",
"SettingStartSleepOffChar": "Sz", "SettingStartSleepOffChar": "Sz",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "T" "SettingLockFullChar": "T",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "R", "SettingStartSleepChar": "R",
"SettingStartSleepOffChar": "A", "SettingStartSleepOffChar": "A",
"SettingLockBoostChar": "T", "SettingLockBoostChar": "T",
"SettingLockFullChar": "C" "SettingLockFullChar": "C",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "待", "SettingStartSleepChar": "待",
"SettingStartSleepOffChar": "室", "SettingStartSleepOffChar": "室",
"SettingLockBoostChar": "ブ", "SettingLockBoostChar": "ブ",
"SettingLockFullChar": "全" "SettingLockFullChar": "全",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "M", "SettingStartSleepChar": "M",
"SettingStartSleepOffChar": "K", "SettingStartSleepOffChar": "K",
"SettingLockBoostChar": "T", "SettingLockBoostChar": "T",
"SettingLockFullChar": "V" "SettingLockFullChar": "V",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "D", "SettingStartSleepChar": "D",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "S", "SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "Z", "SettingStartSleepOffChar": "Z",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "V" "SettingLockFullChar": "V",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "S", "SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "K", "SettingStartSleepOffChar": "K",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "O", "SettingStartSleepOffChar": "O",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "P" "SettingLockFullChar": "P",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "H", "SettingStartSleepChar": "H",
"SettingStartSleepOffChar": "A", "SettingStartSleepOffChar": "A",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "С", "SettingStartSleepChar": "С",
"SettingStartSleepOffChar": "К", "SettingStartSleepOffChar": "К",
"SettingLockBoostChar": "Т", "SettingLockBoostChar": "Т",
"SettingLockFullChar": "П" "SettingLockFullChar": "П",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "S", "SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "I", "SettingStartSleepOffChar": "I",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "P" "SettingLockFullChar": "P",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "V", "SettingStartSleepOffChar": "V",
"SettingLockBoostChar": "L", "SettingLockBoostChar": "L",
"SettingLockFullChar": "P" "SettingLockFullChar": "P",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "С", "SettingStartSleepChar": "С",
"SettingStartSleepOffChar": "X", "SettingStartSleepOffChar": "X",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "S", "SettingStartSleepChar": "S",
"SettingStartSleepOffChar": "X", "SettingStartSleepOffChar": "X",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "V", "SettingStartSleepChar": "V",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "T", "SettingLockBoostChar": "T",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "U", "SettingStartSleepChar": "U",
"SettingStartSleepOffChar": "S", "SettingStartSleepOffChar": "S",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "С", "SettingStartSleepChar": "С",
"SettingStartSleepOffChar": "К", "SettingStartSleepOffChar": "К",
"SettingLockBoostChar": "Т", "SettingLockBoostChar": "Т",
"SettingLockFullChar": "П" "SettingLockFullChar": "П",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "U", "SettingStartSleepChar": "U",
"SettingStartSleepOffChar": "X", "SettingStartSleepOffChar": "X",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "T" "SettingLockFullChar": "T",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "Z", "SettingStartSleepChar": "Z",
"SettingStartSleepOffChar": "R", "SettingStartSleepOffChar": "R",
"SettingLockBoostChar": "B", "SettingLockBoostChar": "B",
"SettingLockFullChar": "F" "SettingLockFullChar": "F",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "待", "SettingStartSleepChar": "待",
"SettingStartSleepOffChar": "室", "SettingStartSleepOffChar": "室",
"SettingLockBoostChar": "增", "SettingLockBoostChar": "增",
"SettingLockFullChar": "全" "SettingLockFullChar": "全",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "待", "SettingStartSleepChar": "待",
"SettingStartSleepOffChar": "室", "SettingStartSleepOffChar": "室",
"SettingLockBoostChar": "增", "SettingLockBoostChar": "增",
"SettingLockFullChar": "全" "SettingLockFullChar": "全",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -81,7 +81,8 @@
"SettingStartSleepChar": "待", "SettingStartSleepChar": "待",
"SettingStartSleepOffChar": "室", "SettingStartSleepOffChar": "室",
"SettingLockBoostChar": "增", "SettingLockBoostChar": "增",
"SettingLockFullChar": "全" "SettingLockFullChar": "全",
"SettingLockTempChar": "T"
}, },
"menuGroups": { "menuGroups": {
"PowerMenu": { "PowerMenu": {

View File

@@ -165,6 +165,12 @@
"len": 1, "len": 1,
"default": "F", "default": "F",
"description": "Shown when the locking mode is set to lock all buttons." "description": "Shown when the locking mode is set to lock all buttons."
},
{
"id": "SettingLockTempChar",
"len": 1,
"default": "T",
"description": "Shown when the locking mode is set to lock all buttons except for -/B to change the temperature."
} }
], ],
"menuGroups": [ "menuGroups": [

View File

@@ -10,6 +10,7 @@
#include "TipThermoModel.h" #include "TipThermoModel.h"
#include "USBPD.h" #include "USBPD.h"
#include "Utils.hpp" #include "Utils.hpp"
#include "bflb_platform.h"
#include "bl702_adc.h" #include "bl702_adc.h"
#include "configuration.h" #include "configuration.h"
#include "crc32.h" #include "crc32.h"
@@ -282,16 +283,3 @@ void showBootLogo(void) {
BootLogo::handleShowingLogo(scratch); BootLogo::handleShowingLogo(scratch);
} }
TemperatureType_t getCustomTipMaxInC() {
// have to lookup the max temp while being aware of the coe scaling value
float max_reading = ADC_MAX_READING - 1.0;
if (adcGainCoeffCal.adcGainCoeffEnable) {
max_reading /= adcGainCoeffCal.coe;
}
TemperatureType_t maximumTipTemp = TipThermoModel::convertTipRawADCToDegC(max_reading);
maximumTipTemp += getHandleTemperature(0) / 10; // Add handle offset
return maximumTipTemp - 1;
}

View File

@@ -161,7 +161,6 @@
#define OLED_96x16 1 #define OLED_96x16 1
#define TEMP_NTC #define TEMP_NTC
#define ACCEL_BMA #define ACCEL_BMA
#define CUSTOM_MAX_TEMP_C 1 // Uses custom max temp lookup
#define ACCEL_SC7 #define ACCEL_SC7
#define HALL_SENSOR #define HALL_SENSOR
#define HALL_SI7210 #define HALL_SI7210

View File

@@ -337,68 +337,51 @@ bool pdbs_dpm_evaluate_capability(const pd_msg *capabilities, pd_msg *request) {
return true; return true;
} }
void add_v_record(pd_msg *cap, uint16_t voltage_mv, int numobj) {
uint16_t current = (voltage_mv) / getTipResistanceX10(); // In centi-amps
/* Add a PDO for the desired power. */
cap->obj[numobj] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(voltage_mv)) | PD_PDO_SNK_FIXED_CURRENT_SET(current);
}
void pdbs_dpm_get_sink_capability(pd_msg *cap, const bool isPD3) { void pdbs_dpm_get_sink_capability(pd_msg *cap, const bool isPD3) {
/* Keep track of how many PDOs we've added */ /* Keep track of how many PDOs we've added */
// int numobj = 0; int numobj = 0;
// /* If we have no configuration or want something other than 5 V, add a PDO /* If we have no configuration or want something other than 5 V, add a PDO
// * for vSafe5V */ * for vSafe5V */
// /* Minimum current, 5 V, and higher capability. */ /* Minimum current, 5 V, and higher capability. */
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(5000)) | PD_PDO_SNK_FIXED_CURRENT_SET(DPM_MIN_CURRENT); cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(5000)) | PD_PDO_SNK_FIXED_CURRENT_SET(DPM_MIN_CURRENT);
// Voltages must be in order of lowest -> highest
#if USB_PD_VMAX >= 20
add_v_record(cap, 9000, numobj);
numobj++;
add_v_record(cap, 15000, numobj);
numobj++;
add_v_record(cap, 20000, numobj);
numobj++;
#elif USB_PD_VMAX >= 15
add_v_record(cap, 9000, numobj);
numobj++;
add_v_record(cap, 12000, numobj);
numobj++;
add_v_record(cap, 15000, numobj);
numobj++;
#elif USB_PD_VMAX >= 12
add_v_record(cap, 9000, numobj);
numobj++;
add_v_record(cap, 12000, numobj);
numobj++;
#elif USB_PD_VMAX >= 9
add_v_record(cap, 9000, numobj);
numobj++;
#endif
// /* Get the current we want */ /* Set the USB communications capable flag. */
// uint16_t voltage = USB_PD_VMAX * 1000; // in mv cap->obj[0] |= PD_PDO_SNK_FIXED_USB_COMMS;
// if (requested_voltage_mv != 5000) {
// voltage = requested_voltage_mv;
// }
// uint16_t current = (voltage) / getTipResistanceX10(); // In centi-amps
// /* Add a PDO for the desired power. */ /* Set the Sink_Capabilities message header */
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_MV2PDV(voltage)) | PD_PDO_SNK_FIXED_CURRENT_SET(current); cap->hdr = PD_DATAROLE_UFP | PD_SPECREV_3_0 | PD_POWERROLE_SINK | PD_MSGTYPE_SINK_CAPABILITIES | PD_NUMOBJ(numobj);
// /* Get the PDO from the voltage range */
// int8_t i = dpm_get_range_fixed_pdo_index(cap);
// /* If it's vSafe5V, set our vSafe5V's current to what we want */
// if (i == 0) {
// cap->obj[0] &= ~PD_PDO_SNK_FIXED_CURRENT;
// cap->obj[0] |= PD_PDO_SNK_FIXED_CURRENT_SET(current);
// } else {
// /* If we want more than 5 V, set the Higher Capability flag */
// if (PD_MV2PDV(voltage) != PD_MV2PDV(5000)) {
// cap->obj[0] |= PD_PDO_SNK_FIXED_HIGHER_CAP;
// }
// /* If the range PDO is a different voltage than the preferred
// * voltage, add it to the array. */
// if (i > 0 && PD_PDO_SRC_FIXED_VOLTAGE_GET(cap->obj[i]) != PD_MV2PDV(voltage)) {
// cap->obj[numobj++] = PD_PDO_TYPE_FIXED | PD_PDO_SNK_FIXED_VOLTAGE_SET(PD_PDO_SRC_FIXED_VOLTAGE_GET(cap->obj[i])) | PD_PDO_SNK_FIXED_CURRENT_SET(PD_PDO_SRC_FIXED_CURRENT_GET(cap->obj[i]));
// }
// /* If we have three PDOs at this point, make sure the last two are
// * sorted by voltage. */
// if (numobj == 3 && (cap->obj[1] & PD_PDO_SNK_FIXED_VOLTAGE) > (cap->obj[2] & PD_PDO_SNK_FIXED_VOLTAGE)) {
// cap->obj[1] ^= cap->obj[2];
// cap->obj[2] ^= cap->obj[1];
// cap->obj[1] ^= cap->obj[2];
// }
// /* If we're using PD 3.0, add a PPS APDO for our desired voltage */
// if ((hdr_template & PD_HDR_SPECREV) >= PD_SPECREV_3_0) {
// cap->obj[numobj++]
// = PD_PDO_TYPE_AUGMENTED | PD_APDO_TYPE_PPS | PD_APDO_PPS_MAX_VOLTAGE_SET(PD_MV2PAV(voltage)) | PD_APDO_PPS_MIN_VOLTAGE_SET(PD_MV2PAV(voltage)) |
// PD_APDO_PPS_CURRENT_SET(PD_CA2PAI(current));
// }
// }
// /* Set the unconstrained power flag. */
// if (_unconstrained_power) {
// cap->obj[0] |= PD_PDO_SNK_FIXED_UNCONSTRAINED;
// }
// /* Set the USB communications capable flag. */
// cap->obj[0] |= PD_PDO_SNK_FIXED_USB_COMMS;
// /* Set the Sink_Capabilities message header */
// cap->hdr = hdr_template | PD_MSGTYPE_SINK_CAPABILITIES | PD_NUMOBJ(numobj);
} }
#endif #endif

View File

@@ -114,9 +114,10 @@ typedef enum {
} usbpdMode_t; } usbpdMode_t;
typedef enum { typedef enum {
DISABLED = 0, // Locking buttons is disabled DISABLED = 0, // All buttons are unlocked
BOOST = 1, // Locking buttons for Boost mode only BOOST = 1, // All buttons are locked except boost
FULL = 2, // Locking buttons for Boost mode AND for Soldering mode FULL = 2, // All buttons are locked
TEMP = 3, // All buttons are locked except -/B to change the temperature
} lockingMode_t; } lockingMode_t;
/* Selection of the soldering tip /* Selection of the soldering tip

View File

@@ -147,6 +147,7 @@ struct TranslationIndexTable {
uint16_t SettingStartSleepOffChar; uint16_t SettingStartSleepOffChar;
uint16_t SettingLockBoostChar; uint16_t SettingLockBoostChar;
uint16_t SettingLockFullChar; uint16_t SettingLockFullChar;
uint16_t SettingLockTempChar;
uint16_t USBPDModeDefault; uint16_t USBPDModeDefault;
uint16_t USBPDModeNoDynamic; uint16_t USBPDModeNoDynamic;
uint16_t USBPDModeSafe; uint16_t USBPDModeSafe;

View File

@@ -54,7 +54,7 @@ typedef struct {
} SettingConstants; } SettingConstants;
static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength] = { static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength] = {
//{ min, max, increment, default} //{ min, max, increment, default}
{ MIN_TEMP_C, MAX_TEMP_F, 5, SOLDERING_TEMP}, // SolderingTemp { MIN_TEMP_C, MAX_TEMP_F, 5, SOLDERING_TEMP}, // SolderingTemp
{ MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp { MIN_TEMP_C, MAX_TEMP_F, 5, 150}, // SleepTemp
{ 0, 15, 1, SLEEP_TIME}, // SleepTime { 0, 15, 1, SLEEP_TIME}, // SleepTime
@@ -72,7 +72,7 @@ static const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOp
{ 0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering { 0, 1, 1, DETAILED_SOLDERING}, // DetailedSoldering
{ 0, (uint16_t)(HasFahrenheit ? 1 : 0), 1, TEMPERATURE_INF}, // TemperatureInF { 0, (uint16_t)(HasFahrenheit ? 1 : 0), 1, TEMPERATURE_INF}, // TemperatureInF
{ 0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed { 0, 1, 1, DESCRIPTION_SCROLL_SPEED}, // DescriptionScrollSpeed
{ 0, 2, 1, LOCKING_MODE}, // LockingMode { 0, 3, 1, LOCKING_MODE}, // LockingMode
{ 0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse { 0, 99, 1, POWER_PULSE_DEFAULT}, // KeepAwakePulse
{ 1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait { 1, POWER_PULSE_WAIT_MAX, 1, POWER_PULSE_WAIT_DEFAULT}, // KeepAwakePulseWait
{ 1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration { 1, POWER_PULSE_DURATION_MAX, 1, POWER_PULSE_DURATION_DEFAULT}, // KeepAwakePulseDuration

View File

@@ -635,6 +635,9 @@ static void displayLockingMode(void) {
case lockingMode_t::FULL: case lockingMode_t::FULL:
OLED::print(translatedString(Tr->SettingLockFullChar), FontStyle::LARGE); OLED::print(translatedString(Tr->SettingLockFullChar), FontStyle::LARGE);
break; break;
case lockingMode_t::TEMP:
OLED::print(translatedString(Tr->SettingLockTempChar), FontStyle::LARGE);
break;
default: default:
OLED::drawUnavailableIcon(); OLED::drawUnavailableIcon();
break; break;

View File

@@ -35,7 +35,7 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
cxt->scratch_state.state1 = 3; cxt->scratch_state.state1 = 3;
break; break;
case BUTTON_F_LONG: case BUTTON_F_LONG:
if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::BOOST)) { if (getSettingValue(SettingsOptions::BoostTemp) && (getSettingValue(SettingsOptions::LockingMode) >= lockingMode_t::BOOST ||)) {
cxt->scratch_state.state2 = 1; cxt->scratch_state.state2 = 1;
break; break;
} }
@@ -65,6 +65,9 @@ OperatingMode handleSolderingButtons(const ButtonState buttons, guiContext *cxt)
} }
break; break;
case BUTTON_F_SHORT: case BUTTON_F_SHORT:
if (getSettingValue(SettingsOptions::LockingMode) == lockingMode_t::TEMP) {
break;
}
case BUTTON_B_SHORT: case BUTTON_B_SHORT:
cxt->transitionMode = TransitionAnimation::Left; cxt->transitionMode = TransitionAnimation::Left;
return OperatingMode::TemperatureAdjust; return OperatingMode::TemperatureAdjust;

View File

@@ -397,6 +397,9 @@ BaseType_t xQueueGenericReset( QueueHandle_t xQueue,
/* Check for multiplication overflow. */ /* Check for multiplication overflow. */
configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) ); configASSERT( ( uxItemSize == 0 ) || ( uxQueueLength == ( xQueueSizeInBytes / uxItemSize ) ) );
/* Check for addition overflow. */
configASSERT( ( sizeof( Queue_t ) + xQueueSizeInBytes ) > xQueueSizeInBytes );
/* Allocate the queue and storage area. Justification for MISRA /* Allocate the queue and storage area. Justification for MISRA
* deviation as follows: pvPortMalloc() always ensures returned memory * deviation as follows: pvPortMalloc() always ensures returned memory
* blocks are aligned per the requirements of the MCU stack. In this case * blocks are aligned per the requirements of the MCU stack. In this case