summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/cube.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 52edf3375f..0cc12fee2f 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -343,14 +343,27 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
343 } 343 }
344 rb->lcd_update(); 344 rb->lcd_update();
345#else 345#else
346 rb->lcd_clear_display();
347 if (t_disp>0) 346 if (t_disp>0)
348 { 347 {
348 if (t_disp == DISP_TIME)
349 {
350 rb->snprintf(buffer, 30, "x%d", xs);
351 rb->lcd_puts(0, 0, buffer);
352 rb->snprintf(buffer, 30, "y%d", ys);
353 rb->lcd_puts(8, 0, buffer);
354 rb->snprintf(buffer, 30, "z%d", zs);
355 rb->lcd_puts(0, 1, buffer);
356 rb->snprintf(buffer, 30, "h%d", highspeed);
357 rb->lcd_puts(8, 1, buffer);
358 }
349 t_disp--; 359 t_disp--;
350 rb->snprintf(buffer, 30, "x%d y%d", xs, ys); 360 if (t_disp == 0)
351 rb->lcd_puts(0, 0, buffer); 361 {
352 rb->snprintf(buffer, 30, "z%d h%d", zs, highspeed); 362 rb->lcd_puts(0, 0, " ");
353 rb->lcd_puts(0, 1, buffer); 363 rb->lcd_puts(8, 0, " ");
364 rb->lcd_puts(0, 1, " ");
365 rb->lcd_puts(8, 1, " ");
366 }
354 } 367 }
355 pgfx_display(3, 0); 368 pgfx_display(3, 0);
356#endif 369#endif