[FSK4] Cppcheck fixes

This commit is contained in:
jgromes 2025-01-18 17:49:10 +01:00
parent dab2c3497c
commit 9b8b9c2802
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ int16_t FSK4Client::setCorrection(int16_t offsets[], float length) {
return(RADIOLIB_ERR_NONE);
}
size_t FSK4Client::write(uint8_t* buff, size_t len) {
size_t FSK4Client::write(const uint8_t* buff, size_t len) {
size_t n = 0;
for(size_t i = 0; i < len; i++) {
n += FSK4Client::write(buff[i]);

View file

@ -59,7 +59,7 @@ class FSK4Client {
\param len Number of bytes to transmit.
\returns Number of transmitted bytes.
*/
size_t write(uint8_t* buff, size_t len);
size_t write(const uint8_t* buff, size_t len);
/*!
\brief Transmit a single byte.