|
|
@@ -215,6 +215,13 @@ void process_bms_message(can_frame_t *frame, int len){
|
|
|
}
|
|
|
protocol_send_ack(frame->head.can_addr, frame->key, result);
|
|
|
break;
|
|
|
+ case CAN_KEY_RESTORE_NV: {
|
|
|
+ restore_nv_cmd_t *nv = (restore_nv_cmd_t *)frame->data;
|
|
|
+ nv_save_sn(nv->sn, nv->sn_len);
|
|
|
+ soc_restore_by_iap(nv->flags, nv->capacity);
|
|
|
+ protocol_send_ack(frame->head.can_addr, frame->key, 1);
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|