Use explicit constructors for base classes

pull/1094/head
jgromes 2024-05-11 17:22:57 +01:00
rodzic e35689cbaa
commit 3d9815f93d
4 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -656,7 +656,7 @@ class LR11x0: public PhysicalLayer {
\brief Default constructor.
\param mod Instance of Module that will be used to communicate with the radio.
*/
LR11x0(Module* mod); // cppcheck-suppress noExplicitConstructor
explicit LR11x0(Module* mod);
/*!
\brief Whether the module has an XTAL (true) or TCXO (false). Defaults to false.

Wyświetl plik

@ -452,7 +452,7 @@ class SX126x: public PhysicalLayer {
\brief Default constructor.
\param mod Instance of Module that will be used to communicate with the radio.
*/
SX126x(Module* mod); // cppcheck-suppress noExplicitConstructor
explicit SX126x(Module* mod);
/*!
\brief Whether the module has an XTAL (true) or TCXO (false). Defaults to false.
@ -972,7 +972,7 @@ class SX126x: public PhysicalLayer {
\param irqMask Mask indicating which IRQ triggers a DIO
\returns \ref status_codes
*/
int16_t irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask);
int16_t irqRxDoneRxTimeout(uint32_t &irqFlags, uint32_t &irqMask) override;
/*!
\brief Check whether the IRQ bit for RxTimeout is set

Wyświetl plik

@ -594,7 +594,7 @@ class SX127x: public PhysicalLayer {
\brief Default constructor. Called internally when creating new LoRa instance.
\param mod Instance of Module that will be used to communicate with the %LoRa chip.
*/
SX127x(Module* mod); // cppcheck-suppress noExplicitConstructor
explicit SX127x(Module* mod);
// basic methods

Wyświetl plik

@ -359,7 +359,7 @@ class SX128x: public PhysicalLayer {
\brief Default constructor.
\param mod Instance of Module that will be used to communicate with the radio.
*/
SX128x(Module* mod); // cppcheck-suppress noExplicitConstructor
explicit SX128x(Module* mod);
// basic methods