mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
fix cppcheck
This commit is contained in:
parent
0ddc4dad97
commit
b9cd410cd1
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "power_management.h"
|
||||
|
||||
PowerManagement::PowerManagement() {
|
||||
PowerManagement::PowerManagement() : axp() {
|
||||
}
|
||||
|
||||
bool PowerManagement::begin(TwoWire &port) {
|
||||
|
|
|
|||
|
|
@ -30,9 +30,11 @@ bool AprsIsTask::loop(System &system) {
|
|||
return false;
|
||||
}
|
||||
|
||||
std::shared_ptr<APRSMessage> msg = _aprs_is.getAPRSMessage();
|
||||
if (msg) {
|
||||
_toModem.addElement(msg);
|
||||
{
|
||||
std::shared_ptr<APRSMessage> msg = _aprs_is.getAPRSMessage();
|
||||
if (msg) {
|
||||
_toModem.addElement(msg);
|
||||
}
|
||||
}
|
||||
|
||||
if (!_toAprsIs.empty()) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
class MQTTTask : public Task {
|
||||
public:
|
||||
MQTTTask(TaskQueue<std::shared_ptr<APRSMessage>> &toMQTT);
|
||||
explicit MQTTTask(TaskQueue<std::shared_ptr<APRSMessage>> &toMQTT);
|
||||
virtual ~MQTTTask();
|
||||
|
||||
virtual bool setup(System &system) override;
|
||||
|
|
|
|||
Loading…
Reference in a new issue