[SSTV] Fixed issues found by cppcheck
This commit is contained in:
parent
d4e7af836c
commit
a93e7b93de
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue