changed from 1MB to 512kB

pico-v0.13
alanbjohnston 4 years ago committed by GitHub
parent b19df2f5e7
commit c008a66174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,7 +41,7 @@
#include "SSTV-Arduino-Scottie1-Library.h"
#include "LittleFS.h"
// jpg files to be stored in flash storage on Pico (FS 1MB setting)
// jpg files to be stored in flash storage on Pico (FS 512kB setting)
#include "sstv1.h"
#include "sstv2.h"
@ -3542,7 +3542,7 @@ void load_files() {
Serial.println("Loading image sstv_image_1_320_x_240.jpg into FS");
f = LittleFS.open("sstv_image_1_320_x_240.jpg", "w+");
if (f.write(sstv_image_1_320_x_240, sizeof(sstv_image_1_320_x_240)) < sizeof(sstv_image_1_320_x_240)) {
Serial.println("Loading image failed. Is Flash Size (FS) set to 1MB?");
Serial.println("Loading image failed. Is Flash Size (FS) set to 512kB?");
delay(2000);
}
f.close();
@ -3556,7 +3556,7 @@ void load_files() {
Serial.println("Loading image sstv_image_2_320_x_240.jpg into FS");
f = LittleFS.open("sstv_image_2_320_x_240.jpg", "w+");
if (f.write(sstv_image_2_320_x_240, sizeof(sstv_image_2_320_x_240)) < sizeof(sstv_image_2_320_x_240)) {
Serial.println("Loading image failed. Is Flash Size (FS) set to 1MB?");
Serial.println("Loading image failed. Is Flash Size (FS) set to 512kB?");
delay(2000);
}
f.close();

Loading…
Cancel
Save

Powered by TurnKey Linux.