kopia lustrzana https://github.com/jgromes/RadioLib
[Bell] Chore: uncrustify formatting
rodzic
c92712787d
commit
e42cb80513
|
@ -33,7 +33,7 @@ BellClient::BellClient(AFSKClient* aud) : AFSKClient(aud) {
|
|||
this->reply = false;
|
||||
}
|
||||
|
||||
int16_t BellClient::begin(const BellModem_t& modem) {
|
||||
int16_t BellClient::begin(const BellModem_t &modem) {
|
||||
int16_t state = setModem(modem);
|
||||
RADIOLIB_ASSERT(state);
|
||||
|
||||
|
@ -41,9 +41,9 @@ int16_t BellClient::begin(const BellModem_t& modem) {
|
|||
return(state);
|
||||
}
|
||||
|
||||
int16_t BellClient::setModem(const BellModem_t& modem) {
|
||||
int16_t BellClient::setModem(const BellModem_t &modem) {
|
||||
this->modemType = modem;
|
||||
this->toneLen = (1000000.0f/(float)this->modemType.baudRate)*this->correction;
|
||||
this->toneLen = (1000000.0f / (float)this->modemType.baudRate) * this->correction;
|
||||
return(RADIOLIB_ERR_NONE);
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ size_t BellClient::write(uint8_t b) {
|
|||
}
|
||||
mod->waitForMicroseconds(start, this->toneLen);
|
||||
}
|
||||
|
||||
|
||||
if(this->autoStart) {
|
||||
phyLayer->standby();
|
||||
}
|
||||
|
|
|
@ -51,10 +51,10 @@ extern const struct BellModem_t Bell202;
|
|||
\class BellClient
|
||||
\brief Client for Bell modem communication. The public interface is the same as Arduino Serial.
|
||||
*/
|
||||
class BellClient: public AFSKClient, public RadioLibPrint {
|
||||
|
||||
class BellClient : public AFSKClient, public RadioLibPrint {
|
||||
|
||||
public:
|
||||
|
||||
|
||||
/*!
|
||||
\brief Whether the modem is replying.
|
||||
On some modems, the replying station has different tone frequencies.
|
||||
|
@ -79,14 +79,14 @@ class BellClient: public AFSKClient, public RadioLibPrint {
|
|||
\param modem Definition of the Bell modem to use for communication.
|
||||
\returns \ref status_codes
|
||||
*/
|
||||
int16_t begin(const BellModem_t& modem);
|
||||
int16_t begin(const BellModem_t &modem);
|
||||
|
||||
/*!
|
||||
\brief Set Bell modem.
|
||||
\param modem Definition of the Bell modem to use for communication.
|
||||
\returns \ref status_codes
|
||||
*/
|
||||
int16_t setModem(const BellModem_t& modem);
|
||||
int16_t setModem(const BellModem_t &modem);
|
||||
|
||||
/*!
|
||||
\brief Set correction coefficient for tone length.
|
||||
|
@ -113,9 +113,9 @@ class BellClient: public AFSKClient, public RadioLibPrint {
|
|||
*/
|
||||
int16_t standby();
|
||||
|
||||
#if !RADIOLIB_GODMODE
|
||||
#if !RADIOLIB_GODMODE
|
||||
private:
|
||||
#endif
|
||||
#endif
|
||||
BellModem_t modemType = Bell101;
|
||||
float correction = 1.0;
|
||||
uint16_t toneLen = 0;
|
||||
|
|
Ładowanie…
Reference in New Issue