summaryrefslogtreecommitdiff
path: root/apps/plugins/firmware_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r--apps/plugins/firmware_flash.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c
index 697884fd5d..fa77a33697 100644
--- a/apps/plugins/firmware_flash.c
+++ b/apps/plugins/firmware_flash.c
@@ -79,6 +79,8 @@
79 79
80#ifdef PLATFORM_ID 80#ifdef PLATFORM_ID
81 81
82PLUGIN_HEADER
83
82#if CONFIG_KEYPAD == ONDIO_PAD /* limited keypad */ 84#if CONFIG_KEYPAD == ONDIO_PAD /* limited keypad */
83#define KEY1 BUTTON_LEFT 85#define KEY1 BUTTON_LEFT
84#define KEY2 BUTTON_UP 86#define KEY2 BUTTON_UP
@@ -1048,7 +1050,7 @@ void DoUserDialog(char* filename)
1048 rb->snprintf(buf, sizeof(buf), "Verify failed! %d errors", rc); 1050 rb->snprintf(buf, sizeof(buf), "Verify failed! %d errors", rc);
1049 rb->lcd_puts_scroll(0, 0, buf); 1051 rb->lcd_puts_scroll(0, 0, buf);
1050 } 1052 }
1051 1053
1052 rb->lcd_puts_scroll(0, 1, "Press any key to exit."); 1054 rb->lcd_puts_scroll(0, 1, "Press any key to exit.");
1053 WaitForButton(); 1055 WaitForButton();
1054} 1056}
@@ -1062,11 +1064,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
1062{ 1064{
1063 int oldmode; 1065 int oldmode;
1064 1066
1065 /* this macro should be called as the first thing you do in the plugin.
1066 it test that the api version and model the plugin was compiled for
1067 matches the machine it is running on */
1068 TEST_PLUGIN_API(api);
1069
1070 rb = api; /* copy to global api pointer */ 1067 rb = api; /* copy to global api pointer */
1071 1068
1072 /* now go ahead and have fun! */ 1069 /* now go ahead and have fun! */