Skip to content
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

Enable compiling with gccnoneeabi 12.3.1 for nRF52 targets, additional small fixes #3778

Merged
merged 7 commits into from
May 3, 2024

Conversation

tuxphone
Copy link
Contributor

@tuxphone tuxphone commented May 3, 2024

When compiling with gccnoneeabi 12.3.1 (on windows) one runs into the problem that there are some definitions using the type "uint", which is not a standard type. Resulting in a failed compiler run.

Also there are two instances of a missing time.h (error: time_t not declared).

The meshtastic type of nodeNum is "NodeNum", so it should be used instead of uint.

channel_num is defined as uint, but should rather be uint32_t (type of hash() and num_channels)

Typo "Adverising" fixed in nrf/bluetooth

@CLAassistant
Copy link

CLAassistant commented May 3, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@tuxphone
Copy link
Contributor Author

tuxphone commented May 3, 2024

Another uint in GPS.cpp

Type of nodeNum is NodeNum, not uint
fixed typo "resumeAdverising()"
Missing include breaks compilation with gccnoneeabi 12.3.1 for nrf52 targets on windows hosts.
uint is not a standard type. Using uint breaks compilation with gccnoneeabi 12.3.1 for nRF52 targets on windows hosts.
Type of channel_num should be uint32_t (as this is the type of hash() and numChannels).

Using uint non-standard type uint breaks compilation with gccnoneeabi 12.3.1 for nRF52 targets on windows hosts.
Default build type should be "release" as this is the default of platformio.
uint to unsigned int
@caveman99
Copy link
Sponsor Member

I have the same changes in an uncommitted branch where i wanted to try something out. absolutely spot on ... thanks

@caveman99
Copy link
Sponsor Member

I remember now where these changes were needed. ESP32-C6 support requires a newer ESP32 toolchain, and this one complained about the same defines, among other things.

@thebentern thebentern merged commit 70712d8 into meshtastic:master May 3, 2024
69 checks passed
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.

None yet

4 participants