8000 Merge branch 'master' of github.com:esp8266/source-code-examples · lopesivan/source-code-examples@22b20b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 22b20b0

Browse files
committed
Merge branch 'master' of github.com:esp8266/source-code-examples
2 parents 6d617b3 + 15b211c commit 22b20b0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*/firmware/
2+
*/build/

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