-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
datetime: Set the default year to the year during compile #2133
Conversation
Build size and comparison to main:
|
While were at it changing stuff related to Date & Time, we could also consider this PR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. When tested on device good to go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Haven't tested on HW
PS: Took me about 5 minutes to understand the const correctness of the arrays, but I think you've got the type right. Well done 😅
Yeah, const-correctness in C++ isn't very obvious haha. I'm not by my dev kit so I can't debug this, but it really doesn't seem to like calling |
Ah, that would be as system task doesn't exist yet so it hits a null ptr deref when it tries to push OnNewTime Edit: I think just adding a systemtask null check should suffice? |
Good thinking! Adding a NULL check should indeed fix it. |
It boots now, but I haven't been able to get the time to not be read from |
Is it possible to make a Firmware that always reads the noinit data I instead of the filesystem? |
|
That makes a lot of sense haha. |
3882f48
to
f5235b4
Compare
My watch just ran out of battery, so I can confirm: this does work on actual hardware! |
f5235b4
to
af83cb9
Compare
Supersedes #2067.