Merge pull request #37 from ucloud/feature_optimize_hal_flash

optimize hal flash
This commit is contained in:
ethanDu1 2020-08-21 13:55:48 +08:00 committed by GitHub
commit 09cd37b644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -26,11 +26,10 @@ void * HAL_Download_Name_Set(void * handle)
void * HAL_Download_Init(_IN_ void * name)
{
char * file_name =(char *)name;
const struct fal_partition * dl_part = RT_NULL;
if ((dl_part = fal_partition_find(file_name)) == RT_NULL)
if ((dl_part = fal_partition_find((char *)name)) == RT_NULL)
{
LOG_ERROR("Firmware download failed! Partition (%s) find error!", file_name);
LOG_ERROR("Firmware download failed! Partition (%s) find error!", name);
return NULL;
}