fix: incorrect display of negative angle value
This commit is contained in:
1 parent
67e207c111
commit
eaf66e38e5
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -408,7 +408,7 @@ static void _zh_a_inclinometer_processing_task(void *pvParameter)
|
||||
prev_angle = current_angle;
|
||||
xSemaphoreTake(_lcd_mutex, portMAX_DELAY);
|
||||
zh_160x_set_cursor(&_lcd_handle, 1, 5);
|
||||
zh_160x_print_char(&_lcd_handle, " ");
|
||||
zh_160x_print_char(&_lcd_handle, " ");
|
||||
zh_160x_set_cursor(&_lcd_handle, 1, 2);
|
||||
zh_160x_print_float(&_lcd_handle, current_angle, 1);
|
||||
xSemaphoreGive(_lcd_mutex);
|
||||
@@ -435,7 +435,7 @@ static void _zh_b_inclinometer_processing_task(void *pvParameter)
|
||||
prev_angle = current_angle;
|
||||
xSemaphoreTake(_lcd_mutex, portMAX_DELAY);
|
||||
zh_160x_set_cursor(&_lcd_handle, 1, 13);
|
||||
zh_160x_print_char(&_lcd_handle, " ");
|
||||
zh_160x_print_char(&_lcd_handle, " ");
|
||||
zh_160x_set_cursor(&_lcd_handle, 1, 10);
|
||||
zh_160x_print_float(&_lcd_handle, current_angle, 1);
|
||||
xSemaphoreGive(_lcd_mutex);
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
1.1.1
|
||||
1.1.2
|
||||
Reference in new issue
Block a user