Merge pull request #672 from armink/master

完善 SFUD 驱动代码,并在 IotCamera 平台测试通过
This commit is contained in:
Bernard Xiong 2016-10-11 21:39:50 +08:00 committed by GitHub
commit a8216a234b
2 changed files with 2 additions and 2 deletions

View File

@ -57,6 +57,6 @@
#error "Please configure RT_SFUD_USING_SFDP or RT_SFUD_USING_FLASH_INFO_TABLE at least one kind of mode (in rtconfig.h)." #error "Please configure RT_SFUD_USING_SFDP or RT_SFUD_USING_FLASH_INFO_TABLE at least one kind of mode (in rtconfig.h)."
#endif #endif
#define SFUD_FLASH_DEVICE_TABLE NULL #define SFUD_FLASH_DEVICE_TABLE {0}
#endif /* _SFUD_CFG_H_ */ #endif /* _SFUD_CFG_H_ */

View File

@ -501,7 +501,7 @@ static void sf(uint8_t argc, char **argv) {
} }
} else if (!rt_strcmp(operator, "bench")) { } else if (!rt_strcmp(operator, "bench")) {
if ((argc > 2 && rt_strcmp(argv[2], "yes")) || argc < 3) { if ((argc > 2 && rt_strcmp(argv[2], "yes")) || argc < 3) {
rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'."); rt_kprintf("DANGER: It will erase full chip! Please run 'sf bench yes'.\n");
return; return;
} }
/* full chip benchmark test */ /* full chip benchmark test */