Sweep up some missed trunk formatting

This commit is contained in:
Ben Meadors
2024-08-13 06:52:03 -05:00
parent e85a2e827b
commit 7740b4bccd
8 changed files with 32 additions and 38 deletions

View File

@@ -229,7 +229,7 @@ void cpuDeepSleep(uint32_t msecToWake)
// of just the first) gpio_pullup_en((gpio_num_t)BUTTON_PIN);
#ifdef ESP32S3_WAKE_TYPE
esp_sleep_enable_ext1_wakeup(gpioMask, ESP32S3_WAKE_TYPE);
esp_sleep_enable_ext1_wakeup(gpioMask, ESP32S3_WAKE_TYPE);
#else
#if SOC_PM_SUPPORT_EXT_WAKEUP
#ifdef CONFIG_IDF_TARGET_ESP32
@@ -240,7 +240,7 @@ void cpuDeepSleep(uint32_t msecToWake)
#endif
#endif
#endif //#end ESP32S3_WAKE_TYPE
#endif // #end ESP32S3_WAKE_TYPE
#endif
// We want RTC peripherals to stay on

View File

@@ -198,15 +198,13 @@ void NRF52Bluetooth::shutdown()
{
// Shutdown bluetooth for minimum power draw
LOG_INFO("Disable NRF52 bluetooth\n");
uint8_t connection_num=Bluefruit.connected();
if(connection_num)
{
for(uint8_t i=0;i<connection_num;i++)
{
LOG_INFO("NRF52 bluetooth disconnecting handle %d\n",i);
uint8_t connection_num = Bluefruit.connected();
if (connection_num) {
for (uint8_t i = 0; i < connection_num; i++) {
LOG_INFO("NRF52 bluetooth disconnecting handle %d\n", i);
Bluefruit.disconnect(i);
}
delay(100);//wait for ondisconnect;
delay(100); // wait for ondisconnect;
}
Bluefruit.Advertising.stop();
}