-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
removed some redundant lines #1494
Conversation
@Ralim Since I'm using a fork of IronOS without Invert & ButtonLocking, I noticed that the current handling of a firmware update in terms of a reset causes problems that make a manual I assume that values from previous functions are being moved and put in the place of other functions, resulting in a chaos. In my case the device displayed a VIN of So we either need to:
I'd like to have the 1 option, but don't know how to achieve this. 😅 |
Are you at all messing with the enumeration inside the settings file? That enumeration is append only (only ever add new ones) if any are reordered or removed you have to force a reset as that breaks the migration. Additionally migration only works forwards, ie. On adding, if you go forwards to a new setting,back and then forwards again it may not behave well as it will shoehorn the former extended setting into the new one. So long as that settings enumeration is not touched it should migrate fine. |
Sorry, but I am not able to follow. 😅
That is exactly what I did. 🤣 I primarily thought about a scenario where features might eventually be removed.
So even the above mentioned case should work, right? |
I failed at making a return to the thanks in advance |
So this part of the code: IronOS/source/Core/Inc/Settings.h Line 16 in efeb0e6
Where it assigns a setting to a number; can never be changed since thats how they are laid out on flash.
|
Ok! Got that. 😃 👍🏻
This seems a bit clumsy. I think it would be best if we could virtually reboot the device (without disconnecting it). To clarify how I imagined it to work: Nonetheless, I think this PR can be merged, as it re-establishes the separation between the two reset modes. thanks in advance |
Sorry thats what I meant; we can just ask the chip to do a reset for us. |
Ahh, that's fine! 👍🏻
I'm good with that! |
Since the feature removal method I used in my fork doesn't work, I would like to know how to do it properly? |
as stated in the header
and corrected reset message
Reset message was in both cases the same, but the result was not!