Skip to content

Commit 50b49ed

Browse files
committed
more debugging output
1 parent 6230393 commit 50b49ed

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ext_mod/lcd_bus/src/common/sw_rotate_task_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ void mp_lcd_sw_rotate_task(void *self_in)
2424

2525
LCD_DEBUG_PRINT("mp_lcd_sw_rotate_task - starting bus init\n")
2626
if (!init->cb(self_in)) {
27-
LCD_DEBUG_PRINT("mp_lcd_sw_rotate_task - bus init FAILURE\n")
27+
init->err
28+
LCD_DEBUG_PRINT(init->err_msg, init->err)
29+
LCD_DEBUG_PRINT("mp_lcd_sw_rotate_task - bus init FAILURE, releasing init lock\n")
2830
mp_lcd_lock_release(&handles->init_lock);
2931
return;
3032
}

ext_mod/lcd_bus/src/esp32/sw_rotate_task.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,17 @@ bool mp_lcd_start_rotate_task(void *self_in)
117117
{
118118
mp_lcd_bus_obj_t *self = (mp_lcd_bus_obj_t *)self_in;
119119

120+
LCD_DEBUG_PRINT("mp_lcd_start_rotate_task m- acquiring init lock\n")
120121
mp_lcd_lock_acquire(&self->sw_rot.handles.init_lock);
121122

122123
xTaskCreatePinnedToCore(
123124
mp_lcd_sw_rotate_task, "rotate_task", LCD_DEFAULT_STACK_SIZE / sizeof(StackType_t),
124125
self, ESP_TASK_PRIO_MAX - 1, &self->sw_rot.handles.task_handle, 0);
125126

127+
LCD_DEBUG_PRINT("mp_lcd_start_rotate_task - acquiring init lock\n")
128+
126129
mp_lcd_lock_acquire(&self->sw_rot.handles.init_lock);
130+
LCD_DEBUG_PRINT("mp_lcd_start_rotate_task - releasing init lock\n")
127131
mp_lcd_lock_release(&self->sw_rot.handles.init_lock);
128132

129133
if (self->sw_rot.init.err != LCD_OK) {

0 commit comments

Comments
 (0)