|
|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
#include <furi.h>
|
|
|
#include <furi_hal.h>
|
|
|
+#include <expansion/expansion.h>
|
|
|
|
|
|
static bool wifi_marauder_app_custom_event_callback(void* context, uint32_t event) {
|
|
|
furi_assert(context);
|
|
|
@@ -170,6 +171,9 @@ void wifi_marauder_app_free(WifiMarauderApp* app) {
|
|
|
|
|
|
int32_t wifi_marauder_app(void* p) {
|
|
|
UNUSED(p);
|
|
|
+ // Disable expansion protocol to avoid interference with UART Handle
|
|
|
+ Expansion* expansion = furi_record_open(RECORD_EXPANSION);
|
|
|
+ expansion_disable(expansion);
|
|
|
|
|
|
uint8_t attempts = 0;
|
|
|
bool otg_was_enabled = furi_hal_power_is_otg_enabled();
|
|
|
@@ -194,5 +198,9 @@ int32_t wifi_marauder_app(void* p) {
|
|
|
furi_hal_power_disable_otg();
|
|
|
}
|
|
|
|
|
|
+ // Return previous state of expansion
|
|
|
+ expansion_enable(expansion);
|
|
|
+ furi_record_close(RECORD_EXPANSION);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|