fixed usart callbacks not working

stable
Penguin 5 years ago
parent 40656c18aa
commit 322e0237d0

@ -50,6 +50,7 @@ void p_printf(const char* str, ...)
return; return;
} }
usart_write_buffer_wait(&p_debug_inst, pprint_buffer, strsize); usart_write_buffer_wait(&p_debug_inst, pprint_buffer, strsize);
usart_read_job(&p_debug_inst, &rx_char);
} }
void p_debug_start_service(void) void p_debug_start_service(void)

@ -32,6 +32,7 @@ void oracle_init(void)
disp_drv.buffer = &disp_buf; /*Assign the buffer to the display*/ disp_drv.buffer = &disp_buf; /*Assign the buffer to the display*/
lv_disp_drv_register(&disp_drv); /*Finally register the driver*/ lv_disp_drv_register(&disp_drv); /*Finally register the driver*/
p_debug_start_service();
} }
void oracle_service(void) void oracle_service(void)