kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
bugfix (APX2101 related)
rodzic
86263a7ad1
commit
c1231a11d4
|
@ -1739,18 +1739,17 @@ void setup()
|
|||
if (pmu) {
|
||||
Serial.println("PMU found");
|
||||
pmu->init();
|
||||
if (sonde.config.button2_axp ) {
|
||||
//axp.enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_BATT_REMOVED_IRQ | AXP202_BATT_CONNECT_IRQ, 1);
|
||||
//axp.enableIRQ( AXP202_PEK_LONGPRESS_IRQ | AXP202_PEK_SHORTPRESS_IRQ, 1 );
|
||||
//axp.clearIRQ();
|
||||
pmu->disableAllIRQ();
|
||||
pmu->enableIRQ();
|
||||
}
|
||||
int ndevices = scanI2Cdevice();
|
||||
if (sonde.fingerprint != 17 || ndevices > 0) break; // only retry for fingerprint 17 (startup problems of new t-beam with oled)
|
||||
delay(500);
|
||||
}
|
||||
|
||||
if (sonde.config.button2_axp ) {
|
||||
//axp.enableIRQ(AXP202_VBUS_REMOVED_IRQ | AXP202_VBUS_CONNECT_IRQ | AXP202_BATT_REMOVED_IRQ | AXP202_BATT_CONNECT_IRQ, 1);
|
||||
//axp.enableIRQ( AXP202_PEK_LONGPRESS_IRQ | AXP202_PEK_SHORTPRESS_IRQ, 1 );
|
||||
//axp.clearIRQ();
|
||||
pmu->disableAllIRQ();
|
||||
pmu->enableIRQ();
|
||||
}
|
||||
int ndevices = scanI2Cdevice();
|
||||
if (sonde.fingerprint != 17 || ndevices > 0) break; // only retry for fingerprint 17 (startup problems of new t-beam with oled)
|
||||
delay(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,11 +90,9 @@ PMU *PMU::getInstance(TwoWire &wire) {
|
|||
if(chipid==0x03) {
|
||||
pmu = new AXP192PMU(wire);
|
||||
}
|
||||
#if 0
|
||||
else if (chipid==0x4A) {
|
||||
pmu = new AXP2101PMU(wire);
|
||||
}
|
||||
#endif
|
||||
return pmu;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20230828";
|
||||
const char *version_id = "devel20230828b";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=17;
|
||||
|
|
Ładowanie…
Reference in New Issue