aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Resource/SUBMENU10/Submenu10.txt
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-02-14 12:05:18 +0800
committerTat-Chee Wan (USM)2011-02-14 12:05:18 +0800
commit10b6875c8eec7b2049b5c04ca54ee751e3bb0761 (patch)
tree39995e9231660e43ce96270b397266847cc15ab0 /AT91SAM7S256/Resource/SUBMENU10/Submenu10.txt
parentbcfdc907fc57c08908bb4c6bee4a011677732e6c (diff)
removed assert call to avoid bloating executable
Diffstat (limited to 'AT91SAM7S256/Resource/SUBMENU10/Submenu10.txt')
0 files changed, 0 insertions, 0 deletions
L;
- break;
- }
- if(place->correct_archi != vs_update_start_req->arch)
- {
- /* Request bad architecture */
- printf("Error (New image bad Architecture).\n");
- ctx.modem_busy = 0;
- ctx.start_cnf.start_update = SPIDUPD_BAD_ARCH;
- ctx.state = STATE_UPD_START;
-
- /* Abort the update */
- NetState = NETLOOP_FAIL;
- break;
- }
- if(place->correct_type != vs_update_start_req->upd_type)
- {
- /* Request doesn't concern a sImage */
- printf("Error (New image bad type).\n" );
- ctx.modem_busy = 0;
- ctx.start_cnf.start_update = SPIDUPD_BAD_UPD_TYPE;
- ctx.state = STATE_UPD_START;
-
- /* Abort the update */
- NetState = NETLOOP_FAIL;
- break;
- }
-
- if((vs_update_start_req->version[0] == '\0') ||
- (memcmp(place->current_version, vs_update_start_req->version, SPIDUPD_STRING_VERSION_SIZE) == 0))
- {
- printf("Error (Bad Version).\n" );
- ctx.modem_busy = 0;
- ctx.start_cnf.start_update = SPIDUPD_BAD_VERSION;
- ctx.state = STATE_UPD_START;
-
- /* Abort the update */
- NetState = NETLOOP_FAIL;
- break;
- }
-
- /* Save wanted version */
- memcpy(ctx.wanted_version, vs_update_start_req->version, SPIDUPD_STRING_VERSION_SIZE);
+ /* Request with a newer SPiDUpdate protocol */
+ printf("Error (New SPidUpdate protocol %d, can't understand).\n",
+ vs_update_start_req->proto_version);
+ ctx.modem_busy = 0;
+ ctx.start_cnf.start_update = SPIDUPD_BAD_PROTOCOL;
+ ctx.state = STATE_UPD_START;
+
+ /* Abort the update */
+ NetState = NETLOOP_FAIL;
+ break;
+ }
+ if(SPIDCOM_IMG_DESC_SPC300 != vs_update_start_req->arch)
+ {
+ /* Request bad architecture */
+ printf("Error (New image bad Architecture).\n");
+ ctx.modem_busy = 0;
+ ctx.start_cnf.start_update = SPIDUPD_BAD_ARCH;
+ ctx.state = STATE_UPD_START;
+
+ /* Abort the update */
+ NetState = NETLOOP_FAIL;
+ break;
+ }
+ if(SPIDCOM_IMG_DESC_NORMAL_TYPE != vs_update_start_req->upd_type)
+ {
+ /* Request doesn't concern a sImage */
+ printf("Error (New image bad type).\n" );
+ ctx.modem_busy = 0;
+ ctx.start_cnf.start_update = SPIDUPD_