Skip to content

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Lr1110 quickfixes #504

wants to merge 4 commits into from

Conversation

ppannuto
Copy link
Member

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).

@@ -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';
Copy link
Contributor

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

Copy link
Member Author

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 :)

@ppannuto ppannuto force-pushed the lr1110-quickfixes branch 2 times, most recently from fd00714 to 2d393ce Compare May 14, 2025 16:58
@ppannuto ppannuto force-pushed the lr1110-quickfixes branch from 2d393ce to 1c01239 Compare May 14, 2025 17:35
@ppannuto ppannuto requested a review from brghena May 14, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants