-
Notifications
You must be signed in to change notification settings - Fork 92
Lr1110 quickfixes #504
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
base: master
Are you sure you want to change the base?
Lr1110 quickfixes #504
Conversation
@@ -57,7 +59,7 @@ void hal_hex_to_bin( char *input, uint8_t *dst, int len ) | |||
{ | |||
char tmp[3]; | |||
uint16_t length = strlen( input ); | |||
tmp[2] = NULL; | |||
tmp[2] = '\0'; |
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.
Big fan of this change. I frequently tell my students 0, False, '\0', and NULL are separate things and should be used in semantically meaningful ways. /rant
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.
Well, turn on -std=c23
and on newer compilers it seems to be a hard error by default :)
fd00714
to
2d393ce
Compare
2d393ce
to
1c01239
Compare
After #502, the (newer than CI) compiler (on my machine) is a bit stricter / catches some things that result in hard errors.
These fixup the missing includes and other small warnings that were now promoted to errors.
The switch away from
unzip + mv + rmdir
is to (1) simplify, and (2) handle hidden directories correctly (since there is now a.github/
folder in the upstream root).