Skip to content

Commit acaca6f

Browse files
committed
bug fix
when controller was plugged in from the beginning the esp crashed
1 parent 21fb227 commit acaca6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ void app_main(void)
2323
I2C_master_init();
2424
ssd1306_init();
2525

26-
//init uart for crsf
27-
initCRSF_read();
28-
2926
//welcome screen
3027
ssd1306_setString("Welcome",25,9);
3128
ssd1306_display();
@@ -38,6 +35,9 @@ void app_main(void)
3835
/* Start ble task */
3936
nimble_port_freertos_init(bleHostTask);
4037

38+
//init uart for crsf
39+
initCRSF_read();
40+
4141
//task to read crsf uart data
4242
xTaskCreate(crsf_get_ChannelData_task, "crsf_task", 4096, NULL, 10, NULL);
4343

0 commit comments

Comments
 (0)