system/flashtool.cpp: fix buffer size for nor

Origin commit data
------------------
Branch: ni/coolstream
Commit: d1cbff900f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-29 (Tue, 29 Jan 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-01-29 17:38:39 +04:00
parent fa3a6cc36c
commit 4d50af1aaa

View File

@@ -285,6 +285,9 @@ bool CFlashTool::getInfo()
ErrorMessage = "can't get mtd-info";
return false;
}
if (meminfo.writesize < 1024)
meminfo.writesize = 1024;
isnand = (meminfo.type == MTD_NANDFLASH);
printf("CFlashTool::getInfo: NAND: %s\n", isnand ? "yes" : "no");
return true;