-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinecil v2 short detection at boot #1729
Conversation
If tip is shorted at boot, prevent the FW from running, with the intent to prevent the MOSFET from being damaged
@alextrical |
It looks like the main screen is loaded at the time the check is performed, so the screen is initiated. (It shows the iron icon and voltage) assuming there is a messaging system that can be called, then it would be possible to do. Though I'm still new to this project, I compiled it for the first time today, but will see if I can work something out from the notes tomorrow |
@alextrical IronOS/Translations/translation_EN.json Lines 30 to 32 in 990f42a
e.g.: "WarningShortedTip": {
"message": "Wrong\ntip!"
}, Or even suggest the solution: "WarningShortedTip": {
"message": "Please\nchange tip!"
}, |
Ideal example, will get that added into the PR tomorrow. That definitely helps clear up what happend to the end user, rather than just locking up |
I think you know that my example is just a snippet of what needs to be changed: Here is an example for what needs to be changed by reference to 'CJCCalibrationDone'. Pay attention to the order of the items, which must match in all affected files!I suggest putting it to the warnings. E.g.: after |
Yep, I noticed it was a smaller part of the solution, but is a great example of a functioning error message, that I can use to track down the relevant code to get it working correctly. Than you for the heads up on the translations files, I will probably start by filling them all with dummy data. And then do a second pass with adding the translations for the error message |
Ive managed to get a warning to display, however it seems that the display still refreshes and removes the message from the display at maybe less than 1/10th of a second. I'm not sure how to trap the process in a For/While loop long enough to lock up the device at this stage.
|
The OLED should only be written to by the GUIThread, deliberately to avoid this issue. Then in the gui thread warnings area you can call it to check. You will need to add a stub that returns |
I have updated this to have the translations; @alextrical could you give this a once over / test please 🙇🏼 ? |
Aaahh! I just was going to pick this up to help & to work on that too on this weekend, I swear. :D |
Bug fix/Feature
If tip is shorted at boot, go into an infinite NOP loop to prevent the FW from running, with the intent to prevent the MOSFET from being damaged
If a T12 tip is inserted into the handle too deep, it will short out terminals A & B causing the MOSFET to burn out
What is the new behavior (if this is a feature change)?
If a short is detected between terminals A & B prevent the FW from running and causing damage to the Pinecil v2 Hardware
Other information:
*Short of Pinecil V2 performed with a 1A fast blow fuse, and a 5v PSU to minimize chances of damage to hardware while testing