Skip to content

Commit 4bf5ae3

Browse files
committed
Changed menu to Child Task, added placeholder task that calls it
1 parent af80dd6 commit 4bf5ae3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

BUILD_DIR/t4_sensor2.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// defined in "esos_sensor.h"
2828
static esos_sensor_process_t sensor_processing_mode;
2929

30-
ESOS_USER_TASK(prettyMenu) {
30+
ESOS_CHILD_TASK(menu) {
3131

3232
static char proc_mode_buffer[8]; // buffer for holding the desired processing mode
3333
static char num_samples_buffer[8]; // buffer for holding the desired number of samples
@@ -132,7 +132,16 @@ ESOS_USER_TASK(prettyMenu) {
132132
ESOS_TASK_END();
133133
}
134134

135+
ESOS_USER_TASK(placeholderTask) {
136+
ESOS_THREAD_HANDLE th_child;
137+
138+
ESOS_TASK_BEGIN();
139+
ESOS_SPAWN_AND_WAIT(th_child, menu);
140+
ESOS_TASK_END();
141+
142+
}
143+
135144
void user_init(void){
136145
config_esos_uiF14();
137-
esos_RegisterTask(prettyMenu);
146+
esos_RegisterTask(placeholderTask);
138147
}

0 commit comments

Comments
 (0)