XFW esp bin coming soon --nobuild

This commit is contained in:
Sil333033
2023-08-19 12:29:16 +02:00
parent 8015ea29a2
commit c326c894df
3 changed files with 54 additions and 32 deletions

View File

@@ -106,6 +106,11 @@ void evil_portal_app_free(Evil_PortalApp* app) {
int32_t evil_portal_app(void* p) {
UNUSED(p);
// turn off 5v, so it gets reset on startup
if(furi_hal_power_is_otg_enabled()) {
furi_hal_power_disable_otg();
}
// Enable 5v on startup
uint8_t attempts = 0;
while(!furi_hal_power_is_otg_enabled() && attempts++ < 5) {

View File

@@ -135,6 +135,8 @@ Evil_PortalUart* evil_portal_uart_init(Evil_PortalApp* app) {
furi_hal_uart_set_br(UART_CH, app->BAUDRATE);
furi_hal_uart_set_irq_cb(UART_CH, evil_portal_uart_on_irq_cb, uart);
evil_portal_uart_tx((uint8_t*)("XFW#EVILPORTAL=1\n"), strlen("XFW#EVILPORTAL=1\n"));
return uart;
}