Open sticilface opened 3 months ago
Ciao @sticilface I think the problem may be fixed removing register
keyword from here:
https://github.com/gioblu/PJON/blob/38e36bb1228c1690143cfbf693a0bcb809514d6c/src/interfaces/ARDUINO/PJON_IO.h#L277
Although, I am not sure why that keyword was there for :)
Can you give a try to this fix?
That does appear to fix the problem. Thank you. Should have found that myself... really...
The register keyword is a hint to the compiler, advising it to store that variable in a processor register instead of memory. It could speed up the generated code, and is used in speed-critical places, but it seems now to be deprecated. I am not sure if modern processor architectures are the reason for this, or if the compiler now determines when to use processor registers automatically.
I've moved to V13 and I now get a large number of complier warnings (See below), when using C++17 on platformio. The errors do not occur with C++11, or in the Arduino IDE.
nonetheless it would be good to fix if possible to keep compatibility moving forward.
The arduinoIDE is still using C++11.
Mainly appears to be the following:
I am unfamiliar with this type, or how it might be resolved.
This occurs using platformio, whereas it does not occur on ArduinoIDE