Skip to content

Commit 51086b8

Browse files
bperseghettijgoppert
authored andcommitted
Fix light
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
1 parent a17b905 commit 51086b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/b3rb/src/lighting.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
LOG_MODULE_REGISTER(b3rb_lighting, CONFIG_CEREBRI_B3RB_LOG_LEVEL);
2424

25-
extern struct k_work_q g_low_priority_work_q;
25+
extern struct k_work_q g_high_priority_work_q;
2626
static void lighting_work_handler(struct k_work* work);
2727
static void lighting_timer_handler(struct k_timer* dummy);
2828

@@ -202,7 +202,7 @@ static void lighting_work_handler(struct k_work* work)
202202
static void lighting_timer_handler(struct k_timer* timer)
203203
{
204204
context_t* ctx = CONTAINER_OF(timer, context_t, timer);
205-
k_work_submit_to_queue(&g_low_priority_work_q, &ctx->work_item);
205+
k_work_submit_to_queue(&g_high_priority_work_q, &ctx->work_item);
206206
}
207207

208208
static void lighting_entry_point(void* p0, void* p1, void* p2)

lib/synapse/topic/src/synapse_topic.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ static int topic_echo(const struct shell* sh, struct zros_topic* topic, void* ms
179179
zros_topic_get_name(topic, name, sizeof(name));
180180
if (rc != 0) {
181181
LOG_WRN("%s not published.", name);
182-
keep_running=false;
182+
keep_running = false;
183183
} else {
184184
if (!zros_sub_update_available(&sub)) {
185185
LOG_WRN("%s no update available.", name);
186-
keep_running=false;
186+
keep_running = false;
187187
} else {
188188
zros_sub_update(&sub);
189189
echo(buf, sizeof(buf), msg);

0 commit comments

Comments
 (0)