|
@@ -128,7 +128,7 @@ void lpc_write(struct lpc_device *dev, const struct sprog_data *d) {
|
|
for(i=0; chunk_sizes[i]; i++) {
|
|
for(i=0; chunk_sizes[i]; i++) {
|
|
if(chunk_sizes[i]>=chunk_size)
|
|
if(chunk_sizes[i]>=chunk_size)
|
|
break;
|
|
break;
|
|
- if(chunk_sizes[i]+1024 > dev->part->ram) {
|
|
|
|
|
|
+ if(chunk_sizes[i]+1024 > dev->part->ram * 1024) {
|
|
i--;
|
|
i--;
|
|
break;
|
|
break;
|
|
}
|
|
}
|