kopia lustrzana https://github.com/lora-aprs/LoRa_APRS_iGate
bugfix of TwoWire handeling
rodzic
18f206ff58
commit
e570736cc8
|
@ -60,7 +60,6 @@ void setup()
|
|||
} else {
|
||||
Serial.println("LoRa-APRS / Init / AXP192 Begin FAIL");
|
||||
}
|
||||
Wire.begin(SDA, SCL);
|
||||
powerManagement.activateLoRa();
|
||||
powerManagement.activateOLED();
|
||||
powerManagement.deactivateGPS();
|
||||
|
|
|
@ -7,7 +7,7 @@ PowerManagement::PowerManagement()
|
|||
}
|
||||
|
||||
// cppcheck-suppress unusedFunction
|
||||
bool PowerManagement::begin(TwoWire port)
|
||||
bool PowerManagement::begin(TwoWire & port)
|
||||
{
|
||||
bool result = axp.begin(port, AXP192_SLAVE_ADDRESS);
|
||||
if(!result)
|
||||
|
|
|
@ -8,7 +8,7 @@ class PowerManagement
|
|||
{
|
||||
public:
|
||||
PowerManagement();
|
||||
bool begin(TwoWire port);
|
||||
bool begin(TwoWire & port);
|
||||
|
||||
void activateLoRa();
|
||||
void deactivateLoRa();
|
||||
|
|
Ładowanie…
Reference in New Issue