1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

layout2: use macro for layoutSwipe

This commit is contained in:
Pavol Rusnak 2017-11-03 18:56:55 +01:00
parent eebd53fd09
commit fa02dec704
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 5 additions and 10 deletions

View File

@ -38,15 +38,6 @@
void *layoutLast = layoutHome;
void layoutSwipe(void) {
#if DEBUG_LINK
oledClear();
#else
oledSwipeLeft();
#endif
}
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6)
{
layoutLast = layoutDialogSwipe;

View File

@ -28,7 +28,11 @@
extern void *layoutLast;
void layoutSwipe(void);
#if DEBUG_LINK
#define layoutSwipe oledClear
#else
#define layoutSwipe oledSwipeLeft
#endif
void layoutDialogSwipe(const BITMAP *icon, const char *btnNo, const char *btnYes, const char *desc, const char *line1, const char *line2, const char *line3, const char *line4, const char *line5, const char *line6);
void layoutProgressSwipe(const char *desc, int permil);