layout2: use macro for layoutSwipe

pull/25/head
Pavol Rusnak 7 years ago
parent eebd53fd09
commit fa02dec704
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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;

@ -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);

Loading…
Cancel
Save