Use the correct size limit for CRAMFS (10M)

This commit is contained in:
Michal Moskal
2017-07-27 21:11:23 +01:00
parent 227f9614b0
commit 8321c76f4c
2 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,9 @@ function build() {
bootnews += " "
let cr = fs.readFileSync("cram.bin")
if (cr.length > 10878976) {
console.log("too big")
if (cr.length > 10485760) {
console.log("too big by " + (cr.length - 10485760))
return
}
let img = fs.readFileSync("EV3 Firmware V1.09D.bin")