# HG changeset patch # User Paul Boddie # Date 1461530515 -7200 # Node ID ea7d1e467f746120d0d12179202df222c2cb114a # Parent 642c8986466b8c6e0f1feb0c2de39315247966d9 Produce a steady display of the value in plot_value. diff -r 642c8986466b -r ea7d1e467f74 stage2/example.c --- a/stage2/example.c Sun Apr 24 22:23:14 2016 +0200 +++ b/stage2/example.c Sun Apr 24 22:41:55 2016 +0200 @@ -37,7 +37,7 @@ void plot_value(u32 value) { - unsigned short x, y, on = 1; + unsigned short x, y; while (1) { @@ -45,11 +45,9 @@ { for (x = 0; x < panel_info.vl_col; x++) { - set_pixel(x, y, on ? get_bitmap_value(x, value) : 0); + set_pixel(x, y, get_bitmap_value(x, value)); } } - udelay(on ? 500000 : 100000); - on = 1 - on; } }