diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/screendump.h | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index efd99569b6..7002b2a3c5 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -1281,6 +1281,10 @@ Lyre prototype 1 */ | |||
1281 | #endif /* SIMULATOR */ | 1281 | #endif /* SIMULATOR */ |
1282 | #endif /* default SDL SW volume conditions */ | 1282 | #endif /* default SDL SW volume conditions */ |
1283 | 1283 | ||
1284 | #if !defined(BOOTLOADER) || defined(HAVE_BOOTLOADER_SCREENDUMP) | ||
1285 | # define HAVE_SCREENDUMP | ||
1286 | #endif | ||
1287 | |||
1284 | /* null audiohw setting macro for when codec header is included for reasons | 1288 | /* null audiohw setting macro for when codec header is included for reasons |
1285 | other than audio support */ | 1289 | other than audio support */ |
1286 | #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) | 1290 | #define AUDIOHW_SETTING(name, us, nd, st, minv, maxv, defv, expr...) |
diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h index 953184c3ac..b8fc27047d 100644 --- a/firmware/export/screendump.h +++ b/firmware/export/screendump.h | |||
@@ -52,12 +52,7 @@ | |||
52 | #define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) | 52 | #define DUMP_BMP_LINESIZE ((LCD_WIDTH*3 + 3) & ~3) |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | #ifdef BOOTLOADER | 55 | #ifdef HAVE_SCREENDUMP |
56 | |||
57 | #define screen_dump() do { } while(0) | ||
58 | #define remote_screen_dump() do { } while(0) | ||
59 | |||
60 | #else /* !BOOTLOADER */ | ||
61 | 56 | ||
62 | /* Save a .BMP file containing the current screen contents. */ | 57 | /* Save a .BMP file containing the current screen contents. */ |
63 | void screen_dump(void); | 58 | void screen_dump(void); |
@@ -69,6 +64,11 @@ void screen_dump_set_hook(void (*hook)(int fd)); | |||
69 | void remote_screen_dump(void); | 64 | void remote_screen_dump(void); |
70 | #endif | 65 | #endif |
71 | 66 | ||
72 | #endif /* !BOOTLOADER */ | 67 | #else /* !HAVE_SCREENDUMP */ |
68 | |||
69 | #define screen_dump() do { } while(0) | ||
70 | #define remote_screen_dump() do { } while(0) | ||
71 | |||
72 | #endif /* HAVE_SCREENDUMP */ | ||
73 | 73 | ||
74 | #endif /* __SCREENDUMP_H__ */ | 74 | #endif /* __SCREENDUMP_H__ */ |