Closed vkvark closed 4 months ago
Updates complete and are included in NRFLite 3.0.5.
Just for future reference in case you see messages like this in other libraries...they are compiler warnings not errors. Warnings still allow the code to be compiled in the Arduino IDE. There are some IDE's that have an option to treat warnings as errors, but by default most just show the warnings and continue to compile the code. If a different library is showing a lot of warnings and you want to hide them, the Arduino IDE has this option:
Many thanks for the prompt follow-up!
Hi there.
I cannot compile any sketch using your lib after the recent ESP32 core update without errors. There are multiple compilation errors in the log like follows: `c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:399:35: warning: 'B01011111' is deprecated: use 0b01011111 instead [-Wdeprecated-declarations] 399 | writeRegister(SETUP_RETR, B01011111); // 0101 = 1500 uS between retries, 1111 = 15 retries
c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp: In member function 'uint8_t NRFLite::twoPinTransfer(uint8_t)': c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:622:20: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 622 | _momi_DDR |= _momi_MASK; // Change MOMI to be an OUTPUT pin. |
~~~^~~~~ c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:624:40: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 624 | if (data & 0x80) { _momi_PORT |= _momi_MASK; } // Set MOMI HIGH if bit position 7 of the byte we are sending is 1. |~~^~~~ c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:626:20: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 626 | _sck_PORT |= _sck_MASK; // Set SCK HIGH to transfer the bit to the radio. CSN will remain LOW while the capacitor begins charging. |~~~^~~~ c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:627:20: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 627 | _sck_PORT &= ~_sck_MASK; // Set SCK LOW. CSN will have remained LOW due to the capacitor. |~~~^~~~~ c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:629:21: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 629 | _momi_PORT &= ~_momi_MASK; // Set MOMI LOW. |~~^~~~ c:\Users\kvark\OneDrive\Arduino\libraries\NRFLite\src\NRFLite.cpp:630:20: warning: compound assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile] 630 | _momi_DDR &= ~_momi_MASK; // Change MOMI back to an INPUT. Since we previously ensured it was LOW, its PULLUP resistor will never `