|
@@ -44,7 +44,7 @@ static enum rym_code ymodem_on_begin(struct rym_ctx *ctx, rt_uint8_t *buf, rt_si
|
|
|
file_name = (char *)&buf[0];
|
|
file_name = (char *)&buf[0];
|
|
|
file_size = (char *)&buf[rt_strlen(file_name) + 1];
|
|
file_size = (char *)&buf[rt_strlen(file_name) + 1];
|
|
|
update_file_total_size = atol(file_size);
|
|
update_file_total_size = atol(file_size);
|
|
|
- rt_kprintf("Ymodem file_size:%d\n", update_file_total_size);
|
|
|
|
|
|
|
+ //rt_kprintf("Ymodem file_size:%d\n", update_file_total_size);
|
|
|
|
|
|
|
|
update_file_cur_size = 0;
|
|
update_file_cur_size = 0;
|
|
|
|
|
|
|
@@ -61,7 +61,7 @@ static enum rym_code ymodem_on_begin(struct rym_ctx *ctx, rt_uint8_t *buf, rt_si
|
|
|
return RYM_CODE_CAN;
|
|
return RYM_CODE_CAN;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- LOG_I("Start erase. Size (%d)", update_file_total_size);
|
|
|
|
|
|
|
+ //LOG_I("Start erase. Size (%d)", update_file_total_size);
|
|
|
|
|
|
|
|
/* erase DL section */
|
|
/* erase DL section */
|
|
|
if (fal_partition_erase(dl_part, 0, update_file_total_size) < 0)
|
|
if (fal_partition_erase(dl_part, 0, update_file_total_size) < 0)
|