Skip to content

Commit f43225f

Browse files
committed
basic_example: set the baud rate to a standard value
This way it is obvious what the baud rate is set to, and easy to change. As a beginner I was frustrated when I tried all baud rates available and none worked.
1 parent 6edbe99 commit f43225f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

basic_example/user/user_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ user_init()
3535
os_memcpy(&stationConf.password, password, 64);
3636
wifi_station_set_config(&stationConf);
3737

38+
// default appears to be a non-standard 74880 baud
39+
uart_div_modify(0, UART_CLK_FREQ / 115200);
40+
3841
//Start os task
3942
system_os_task(loop, user_procTaskPrio,user_procTaskQueue, user_procTaskQueueLen);
4043

0 commit comments

Comments
 (0)