[Bell] Fixed issues found by cppcheck

pull/1094/head
jgromes 2024-05-11 20:32:20 +01:00
rodzic 98bae46c33
commit 914c616c2a
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ size_t BellClient::write(uint8_t b) {
uint16_t toneSpace = this->modemType.freqSpace;
if(this->reply) {
toneMark = this->modemType.freqMarkReply;
toneMark = this->modemType.freqSpaceReply;
toneSpace = this->modemType.freqSpaceReply;
}
// get the Module pointer to access HAL

Wyświetl plik

@ -75,7 +75,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
\brief Audio-client constructor. Can be used when AFSKClient instance already exists.
\param aud Audio client to use.
*/
BellClient(AFSKClient* aud);
explicit BellClient(AFSKClient* aud);
/*!
\brief Initialization method.
@ -104,7 +104,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
\param b Byte to write.
\returns 1 if the byte was written, 0 otherwise.
*/
size_t write(uint8_t b);
size_t write(uint8_t b) override;
/*!
\brief Set the modem to idle (ready to transmit).
@ -119,7 +119,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
#if !RADIOLIB_GODMODE
private:
#endif
BellModem_t modemType;
BellModem_t modemType = Bell101;
float correction = 1.0;
uint16_t toneLen = 0;
bool autoStart = true;