mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 09:26:52 +00:00
trunk fmt
This commit is contained in:
parent
1b35cc018f
commit
fbcd6743fd
@ -606,7 +606,7 @@ bool Power::axpChipInit()
|
|||||||
} else if (PMU->getChipModel() == XPOWERS_AXP2101) {
|
} else if (PMU->getChipModel() == XPOWERS_AXP2101) {
|
||||||
|
|
||||||
/*The alternative version of T-Beam 1.1 differs from T-Beam V1.1 in that it uses an AXP2101 power chip*/
|
/*The alternative version of T-Beam 1.1 differs from T-Beam V1.1 in that it uses an AXP2101 power chip*/
|
||||||
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM){
|
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM) {
|
||||||
// Unuse power channel
|
// Unuse power channel
|
||||||
PMU->disablePowerOutput(XPOWERS_DCDC2);
|
PMU->disablePowerOutput(XPOWERS_DCDC2);
|
||||||
PMU->disablePowerOutput(XPOWERS_DCDC3);
|
PMU->disablePowerOutput(XPOWERS_DCDC3);
|
||||||
@ -636,7 +636,7 @@ bool Power::axpChipInit()
|
|||||||
PMU->setPowerChannelVoltage(XPOWERS_ALDO3, 3300);
|
PMU->setPowerChannelVoltage(XPOWERS_ALDO3, 3300);
|
||||||
PMU->enablePowerOutput(XPOWERS_ALDO3);
|
PMU->enablePowerOutput(XPOWERS_ALDO3);
|
||||||
|
|
||||||
}else if(HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE){
|
} else if (HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE) {
|
||||||
// t-beam s3 core
|
// t-beam s3 core
|
||||||
/**
|
/**
|
||||||
* gnss module power channel
|
* gnss module power channel
|
||||||
|
@ -103,10 +103,10 @@ void setGPSPower(bool on)
|
|||||||
if (pmu_found && PMU) {
|
if (pmu_found && PMU) {
|
||||||
uint8_t model = PMU->getChipModel();
|
uint8_t model = PMU->getChipModel();
|
||||||
if (model == XPOWERS_AXP2101) {
|
if (model == XPOWERS_AXP2101) {
|
||||||
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM){
|
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM) {
|
||||||
// t-beam v1.2 GNSS power channel
|
// t-beam v1.2 GNSS power channel
|
||||||
on ? PMU->enablePowerOutput(XPOWERS_ALDO3) : PMU->disablePowerOutput(XPOWERS_ALDO3);
|
on ? PMU->enablePowerOutput(XPOWERS_ALDO3) : PMU->disablePowerOutput(XPOWERS_ALDO3);
|
||||||
}else if(HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE){
|
} else if (HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE) {
|
||||||
// t-beam-s3-core GNSS power channel
|
// t-beam-s3-core GNSS power channel
|
||||||
on ? PMU->enablePowerOutput(XPOWERS_ALDO4) : PMU->disablePowerOutput(XPOWERS_ALDO4);
|
on ? PMU->enablePowerOutput(XPOWERS_ALDO4) : PMU->disablePowerOutput(XPOWERS_ALDO4);
|
||||||
}
|
}
|
||||||
@ -252,10 +252,10 @@ void doDeepSleep(uint32_t msecToWake)
|
|||||||
|
|
||||||
uint8_t model = PMU->getChipModel();
|
uint8_t model = PMU->getChipModel();
|
||||||
if (model == XPOWERS_AXP2101) {
|
if (model == XPOWERS_AXP2101) {
|
||||||
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM){
|
if (HW_VENDOR == meshtastic_HardwareModel_TBEAM) {
|
||||||
// t-beam v1.2 radio power channel
|
// t-beam v1.2 radio power channel
|
||||||
PMU->disablePowerOutput(XPOWERS_ALDO2); // lora radio power channel
|
PMU->disablePowerOutput(XPOWERS_ALDO2); // lora radio power channel
|
||||||
}else if(HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE){
|
} else if (HW_VENDOR == meshtastic_HardwareModel_LILYGO_TBEAM_S3_CORE) {
|
||||||
PMU->disablePowerOutput(XPOWERS_ALDO3); // lora radio power channel
|
PMU->disablePowerOutput(XPOWERS_ALDO3); // lora radio power channel
|
||||||
}
|
}
|
||||||
} else if (model == XPOWERS_AXP192) {
|
} else if (model == XPOWERS_AXP192) {
|
||||||
|
Loading…
Reference in New Issue
Block a user