8000 Updated the example to make the loop function realy loop · hmms/source-code-examples@99409f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99409f7

Browse files
committed
Updated the example to make the loop function realy loop
1 parent b1c5037 commit 99409f7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

basic_example/user/user_main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ static void loop(os_event_t *events);
1414
static void ICACHE_FLASH_ATTR
1515
loop(os_event_t *events)
1616
{
17-
os_delay_us(10);
17+
os_printf("Hello\n\r");
18+
os_delay_us(10000);
19+
system_os_post(user_procTaskPrio, 0, 0 );
1820
}
1921

2022
//Init function
@@ -24,7 +26,7 @@ user_init()
2426
char ssid[32] = SSID;
2527
char password[64] = SSID_PASSWORD;
2628
struct station_config stationConf;
27-
29+
2830
//Set station mode
2931
wifi_set_opmode( 0x1 );
3032

@@ -35,4 +37,6 @@ user_init()
3537

3638
//Start os task
3739
system_os_task(loop, user_procTaskPrio,user_procTaskQueue, user_procTaskQueueLen);
40+
41+
system_os_post(user_procTaskPrio, 0, 0 );
3842
}

0 commit comments

Comments
 (0)
0