Merge pull request #37 from ucloud/feature_optimize_hal_flash
optimize hal flash
This commit is contained in:
commit
09cd37b644
|
@ -26,11 +26,10 @@ void * HAL_Download_Name_Set(void * handle)
|
||||||
|
|
||||||
void * HAL_Download_Init(_IN_ void * name)
|
void * HAL_Download_Init(_IN_ void * name)
|
||||||
{
|
{
|
||||||
char * file_name =(char *)name;
|
|
||||||
const struct fal_partition * dl_part = RT_NULL;
|
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;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue