mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-03 13:55:45 +00:00
More Spelling Errors
This commit is contained in:
parent
a65c880b80
commit
ef4c6b475b
@ -66,7 +66,7 @@ GpioBinaryTransformer::GpioBinaryTransformer(GpioVirtPin *inPin1, GpioVirtPin *i
|
|||||||
assert(!inPin2->dependentPin); // We only allow one dependent pin
|
assert(!inPin2->dependentPin); // We only allow one dependent pin
|
||||||
inPin2->dependentPin = this;
|
inPin2->dependentPin = this;
|
||||||
|
|
||||||
// Don't update at construction time, because various GpioPins might be global constructor based not yet initied because
|
// Don't update at construction time, because various GpioPins might be global constructor based not yet initiated because
|
||||||
// order of operations for global constructors is not defined.
|
// order of operations for global constructors is not defined.
|
||||||
// update();
|
// update();
|
||||||
}
|
}
|
||||||
|
@ -640,7 +640,7 @@ void Power::readPowerStatus()
|
|||||||
batteryChargePercent = batteryLevel->getBatteryPercent();
|
batteryChargePercent = batteryLevel->getBatteryPercent();
|
||||||
} else {
|
} else {
|
||||||
// If the AXP192 returns a percentage less than 0, the feature is either not supported or there is an error
|
// If the AXP192 returns a percentage less than 0, the feature is either not supported or there is an error
|
||||||
// In that case, we compute an estimate of the charge percent based on open circuite voltage table defined
|
// In that case, we compute an estimate of the charge percent based on open circuit voltage table defined
|
||||||
// in power.h
|
// in power.h
|
||||||
batteryChargePercent = clamp((int)(((batteryVoltageMv - (OCV[NUM_OCV_POINTS - 1] * NUM_CELLS)) * 1e2) /
|
batteryChargePercent = clamp((int)(((batteryVoltageMv - (OCV[NUM_OCV_POINTS - 1] * NUM_CELLS)) * 1e2) /
|
||||||
((OCV[0] * NUM_CELLS) - (OCV[NUM_OCV_POINTS - 1] * NUM_CELLS))),
|
((OCV[0] * NUM_CELLS) - (OCV[NUM_OCV_POINTS - 1] * NUM_CELLS))),
|
||||||
|
@ -185,7 +185,7 @@ static void powerEnter()
|
|||||||
{
|
{
|
||||||
// LOG_DEBUG("Enter state: POWER");
|
// LOG_DEBUG("Enter state: POWER");
|
||||||
if (!isPowered()) {
|
if (!isPowered()) {
|
||||||
// If we got here, we are in the wrong state - we should be in powered, let that state ahndle things
|
// If we got here, we are in the wrong state - we should be in powered, let that state handle things
|
||||||
LOG_INFO("Loss of power in Powered");
|
LOG_INFO("Loss of power in Powered");
|
||||||
powerFSM.trigger(EVENT_POWER_DISCONNECTED);
|
powerFSM.trigger(EVENT_POWER_DISCONNECTED);
|
||||||
} else {
|
} else {
|
||||||
@ -230,7 +230,7 @@ static void onEnter()
|
|||||||
static void onIdle()
|
static void onIdle()
|
||||||
{
|
{
|
||||||
if (isPowered()) {
|
if (isPowered()) {
|
||||||
// If we got here, we are in the wrong state - we should be in powered, let that state ahndle things
|
// If we got here, we are in the wrong state - we should be in powered, let that state handle things
|
||||||
powerFSM.trigger(EVENT_POWER_CONNECTED);
|
powerFSM.trigger(EVENT_POWER_CONNECTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -371,7 +371,7 @@ void PowerFSM_setup()
|
|||||||
// We never enter light-sleep or NB states on NRF52 (because the CPU uses so little power normally)
|
// We never enter light-sleep or NB states on NRF52 (because the CPU uses so little power normally)
|
||||||
#ifdef ARCH_ESP32
|
#ifdef ARCH_ESP32
|
||||||
// See: https://github.com/meshtastic/firmware/issues/1071
|
// See: https://github.com/meshtastic/firmware/issues/1071
|
||||||
// Don't add power saving transitions if we are a power saving tracker or sensor. Sleep will be initiatiated through the
|
// Don't add power saving transitions if we are a power saving tracker or sensor. Sleep will be initiated through the
|
||||||
// modules
|
// modules
|
||||||
if ((isRouter || config.power.is_power_saving) && !isTrackerOrSensor) {
|
if ((isRouter || config.power.is_power_saving) && !isTrackerOrSensor) {
|
||||||
powerFSM.add_timed_transition(&stateNB, &stateLS,
|
powerFSM.add_timed_transition(&stateNB, &stateLS,
|
||||||
|
@ -287,7 +287,7 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
|
|||||||
// No need to turn this off if the power draw in sleep mode really is just 0.2uA and turning it off would
|
// No need to turn this off if the power draw in sleep mode really is just 0.2uA and turning it off would
|
||||||
// leave floating input for the IRQ line
|
// leave floating input for the IRQ line
|
||||||
// If we want to leave the radio receiving in would be 11.5mA current draw, but most of the time it is just waiting
|
// If we want to leave the radio receiving in would be 11.5mA current draw, but most of the time it is just waiting
|
||||||
// in its sequencer (true?) so the average power draw should be much lower even if we were listinging for packets
|
// in its sequencer (true?) so the average power draw should be much lower even if we were listening for packets
|
||||||
// all the time.
|
// all the time.
|
||||||
PMU->setChargingLedMode(XPOWERS_CHG_LED_OFF);
|
PMU->setChargingLedMode(XPOWERS_CHG_LED_OFF);
|
||||||
|
|
||||||
@ -359,7 +359,7 @@ esp_sleep_wakeup_cause_t doLightSleep(uint64_t sleepMsec) // FIXME, use a more r
|
|||||||
// never tries to go to sleep if the user is using the API
|
// never tries to go to sleep if the user is using the API
|
||||||
// gpio_wakeup_enable((gpio_num_t)SERIAL0_RX_GPIO, GPIO_INTR_LOW_LEVEL);
|
// gpio_wakeup_enable((gpio_num_t)SERIAL0_RX_GPIO, GPIO_INTR_LOW_LEVEL);
|
||||||
|
|
||||||
// doesn't help - I think the USB-UART chip losing power is pulling the signal llow
|
// doesn't help - I think the USB-UART chip losing power is pulling the signal low
|
||||||
// gpio_pullup_en((gpio_num_t)SERIAL0_RX_GPIO);
|
// gpio_pullup_en((gpio_num_t)SERIAL0_RX_GPIO);
|
||||||
|
|
||||||
// alas - can only work if using the refclock, which is limited to about 9600 bps
|
// alas - can only work if using the refclock, which is limited to about 9600 bps
|
||||||
|
Loading…
Reference in New Issue
Block a user