mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
system/flashtool.cpp: fix buffer size for nor
Origin commit data
------------------
Commit: d1cbff900f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-29 (Tue, 29 Jan 2013)
This commit is contained in:
@@ -285,6 +285,9 @@ bool CFlashTool::getInfo()
|
|||||||
ErrorMessage = "can't get mtd-info";
|
ErrorMessage = "can't get mtd-info";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (meminfo.writesize < 1024)
|
||||||
|
meminfo.writesize = 1024;
|
||||||
|
|
||||||
isnand = (meminfo.type == MTD_NANDFLASH);
|
isnand = (meminfo.type == MTD_NANDFLASH);
|
||||||
printf("CFlashTool::getInfo: NAND: %s\n", isnand ? "yes" : "no");
|
printf("CFlashTool::getInfo: NAND: %s\n", isnand ? "yes" : "no");
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user