[Bell] Fixed issues found by cppcheck
This commit is contained in:
parent
98bae46c33
commit
914c616c2a
2 changed files with 4 additions and 4 deletions
|
@ -58,7 +58,7 @@ size_t BellClient::write(uint8_t b) {
|
||||||
uint16_t toneSpace = this->modemType.freqSpace;
|
uint16_t toneSpace = this->modemType.freqSpace;
|
||||||
if(this->reply) {
|
if(this->reply) {
|
||||||
toneMark = this->modemType.freqMarkReply;
|
toneMark = this->modemType.freqMarkReply;
|
||||||
toneMark = this->modemType.freqSpaceReply;
|
toneSpace = this->modemType.freqSpaceReply;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the Module pointer to access HAL
|
// get the Module pointer to access HAL
|
||||||
|
|
|
@ -75,7 +75,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
|
||||||
\brief Audio-client constructor. Can be used when AFSKClient instance already exists.
|
\brief Audio-client constructor. Can be used when AFSKClient instance already exists.
|
||||||
\param aud Audio client to use.
|
\param aud Audio client to use.
|
||||||
*/
|
*/
|
||||||
BellClient(AFSKClient* aud);
|
explicit BellClient(AFSKClient* aud);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Initialization method.
|
\brief Initialization method.
|
||||||
|
@ -104,7 +104,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
|
||||||
\param b Byte to write.
|
\param b Byte to write.
|
||||||
\returns 1 if the byte was written, 0 otherwise.
|
\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).
|
\brief Set the modem to idle (ready to transmit).
|
||||||
|
@ -119,7 +119,7 @@ class BellClient: public AFSKClient, public RadioLibPrint {
|
||||||
#if !RADIOLIB_GODMODE
|
#if !RADIOLIB_GODMODE
|
||||||
private:
|
private:
|
||||||
#endif
|
#endif
|
||||||
BellModem_t modemType;
|
BellModem_t modemType = Bell101;
|
||||||
float correction = 1.0;
|
float correction = 1.0;
|
||||||
uint16_t toneLen = 0;
|
uint16_t toneLen = 0;
|
||||||
bool autoStart = true;
|
bool autoStart = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue