[SSTV] Fixed issues found by cppcheck

pull/1094/head
jgromes 2024-05-12 12:03:53 +01:00
rodzic d4e7af836c
commit a93e7b93de
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -246,7 +246,7 @@ void SSTVClient::sendHeader() {
this->tone(RADIOLIB_SSTV_TONE_BREAK, RADIOLIB_SSTV_HEADER_BIT_LENGTH); this->tone(RADIOLIB_SSTV_TONE_BREAK, RADIOLIB_SSTV_HEADER_BIT_LENGTH);
} }
void SSTVClient::sendLine(uint32_t* imgLine) { void SSTVClient::sendLine(const uint32_t* imgLine) {
// check first line flag in Scottie modes // check first line flag in Scottie modes
if(firstLine && ((txMode.visCode == RADIOLIB_SSTV_SCOTTIE_1) || (txMode.visCode == RADIOLIB_SSTV_SCOTTIE_2) || (txMode.visCode == RADIOLIB_SSTV_SCOTTIE_DX))) { if(firstLine && ((txMode.visCode == RADIOLIB_SSTV_SCOTTIE_1) || (txMode.visCode == RADIOLIB_SSTV_SCOTTIE_2) || (txMode.visCode == RADIOLIB_SSTV_SCOTTIE_DX))) {
firstLine = false; firstLine = false;

Wyświetl plik

@ -174,7 +174,7 @@ class SSTVClient {
\param imgLine Image line to send, in 24-bit RGB. It is up to the user to ensure that \param imgLine Image line to send, in 24-bit RGB. It is up to the user to ensure that
imgLine has enough pixels to send it in the current SSTV mode. imgLine has enough pixels to send it in the current SSTV mode.
*/ */
void sendLine(uint32_t* imgLine); void sendLine(const uint32_t* imgLine);
/*! /*!
\brief Get picture height of the currently configured SSTV mode. \brief Get picture height of the currently configured SSTV mode.