diff options
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r-- | apps/plugins/firmware_flash.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 6380f6dbdb..c855fb669f 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c | |||
@@ -128,8 +128,6 @@ typedef struct | |||
128 | char name[32]; | 128 | char name[32]; |
129 | } tFlashInfo; | 129 | } tFlashInfo; |
130 | 130 | ||
131 | static const struct plugin_api* rb; /* here is a global api struct pointer */ | ||
132 | |||
133 | #define MASK_ADR 0xFC /* position of hardware mask value in Flash */ | 131 | #define MASK_ADR 0xFC /* position of hardware mask value in Flash */ |
134 | #define VERSION_ADR 0xFE /* position of firmware version value in Flash */ | 132 | #define VERSION_ADR 0xFE /* position of firmware version value in Flash */ |
135 | #define PLATFORM_ADR 0xFB /* position of my platform ID value in Flash */ | 133 | #define PLATFORM_ADR 0xFB /* position of my platform ID value in Flash */ |
@@ -1074,12 +1072,10 @@ void DoUserDialog(char* filename) | |||
1074 | 1072 | ||
1075 | /***************** Plugin Entry Point *****************/ | 1073 | /***************** Plugin Entry Point *****************/ |
1076 | 1074 | ||
1077 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 1075 | enum plugin_status plugin_start(const void* parameter) |
1078 | { | 1076 | { |
1079 | int oldmode; | 1077 | int oldmode; |
1080 | 1078 | ||
1081 | rb = api; /* copy to global api pointer */ | ||
1082 | |||
1083 | /* now go ahead and have fun! */ | 1079 | /* now go ahead and have fun! */ |
1084 | oldmode = rb->system_memory_guard(MEMGUARD_NONE); /*disable memory guard */ | 1080 | oldmode = rb->system_memory_guard(MEMGUARD_NONE); /*disable memory guard */ |
1085 | DoUserDialog((char*) parameter); | 1081 | DoUserDialog((char*) parameter); |