diff options
-rw-r--r-- | apps/plugins/firmware_flash.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 82e914d99a..6a0a799a11 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c | |||
@@ -270,12 +270,16 @@ unsigned crc_32(unsigned char* buf, unsigned len, unsigned crc32) | |||
270 | /* test if the version number is consistent with the platform */ | 270 | /* test if the version number is consistent with the platform */ |
271 | bool CheckPlatform(int platform_id, UINT16 version) | 271 | bool CheckPlatform(int platform_id, UINT16 version) |
272 | { | 272 | { |
273 | if (version == 123) | 273 | if (version == 200) |
274 | { /* for my very first firmwares, I foolishly changed it to 200 */ | ||
275 | return (platform_id == ID_RECORDER || platform_id == ID_FM); | ||
276 | } | ||
277 | else if (version == 123) | ||
274 | { /* it can be a FM or V2 recorder */ | 278 | { /* it can be a FM or V2 recorder */ |
275 | return (platform_id == ID_FM || platform_id == ID_REC_V2); | 279 | return (platform_id == ID_FM || platform_id == ID_REC_V2); |
276 | } | 280 | } |
277 | else if ((version >= 124 && version <= 128) || version == 200) | 281 | else if (version >= 118 && version <= 128) |
278 | { /* for my very first firmware, I foolishly changed it to 200 */ | 282 | { /* the range of Recorders seen so far */ |
279 | return (platform_id == ID_RECORDER); | 283 | return (platform_id == ID_RECORDER); |
280 | } | 284 | } |
281 | else if (version == 0 || (version >= 300 && version <= 506)) | 285 | else if (version == 0 || (version >= 300 && version <= 506)) |
@@ -819,7 +823,7 @@ void DoUserDialog(char* filename) | |||
819 | /* test if the user is running the correct plugin for this box */ | 823 | /* test if the user is running the correct plugin for this box */ |
820 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) | 824 | if (!CheckPlatform(PLATFORM_ID, *(UINT16*)(FB + VERSION_ADR))) |
821 | { | 825 | { |
822 | rb->splash(HZ*3, 0, true, "Wrong plugin"); | 826 | rb->splash(HZ*3, 0, true, "Wrong version"); |
823 | return; /* exit */ | 827 | return; /* exit */ |
824 | } | 828 | } |
825 | 829 | ||