-
Notifications
You must be signed in to change notification settings - Fork 964
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
Conversation
|
Another uint in GPS.cpp |
Type of nodeNum is NodeNum, not uint
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
I have the same changes in an uncommitted branch where i wanted to try something out. absolutely spot on ... thanks |
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. |
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