diff options
Diffstat (limited to 'apps/plugins/test_fps.c')
-rw-r--r-- | apps/plugins/test_fps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c index fd1ee2a89b..37a93cc489 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c | |||
@@ -257,6 +257,8 @@ static void time_remote_update(void) | |||
257 | #endif | 257 | #endif |
258 | 258 | ||
259 | #if LCD_DEPTH < 4 | 259 | #if LCD_DEPTH < 4 |
260 | |||
261 | GREY_INFO_STRUCT | ||
260 | static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH]; | 262 | static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH]; |
261 | 263 | ||
262 | static void make_grey_rect(int width, int height) | 264 | static void make_grey_rect(int width, int height) |
@@ -312,7 +314,7 @@ static void time_greyscale(void) | |||
312 | 314 | ||
313 | grey_release(); | 315 | grey_release(); |
314 | fps = calc_tenth_fps(frames_2, time_2); | 316 | fps = calc_tenth_fps(frames_2, time_2); |
315 | load = 100 - (100* frames_2 * time_1) / (frames_1 * time_2); | 317 | load = 100 - (100 * frames_2 * time_1) / (frames_1 * time_2); |
316 | rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10); | 318 | rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10); |
317 | log_text(str); | 319 | log_text(str); |
318 | 320 | ||