File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
runcpm-rp2040-dvi-usb/runcpm-pico/hardware/pico Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -104,15 +104,16 @@ bool port_init_early() {
104
104
_getch_hook = getch_serial1 ;
105
105
_kbhit_hook = kbhit_serial1 ;
106
106
// USB mass storage / filesystem setup (do BEFORE Serial init)
107
- if (!blockdevice .begin (SD_CONFIG )) { _puts ("!blockdevice.begin()" ); return false; }
107
+ if (!blockdevice .begin (SD_CONFIG )) { _puts ("Failed to initialize SD card" ); return false; }
108
+ #if USE_MSC
108
109
// Set disk vendor id, product id and revision
109
110
usb_msc .setID ("Adafruit" , "Internal Flash" , "1.0" );
110
111
// Set disk size, block size is 512 regardless of blockdevice page size
111
112
usb_msc .setCapacity (blockdevice .sectorCount (), 512 );
112
113
usb_msc .setReadWriteCallback (msc_read_cb , msc_write_cb , msc_flush_cb );
113
114
usb_msc .setUnitReady (true); // MSC is ready for read/write
114
115
if (!usb_msc .begin ()) {
115
- _puts ("!usb_msc.begin() " ); return false;
116
+ _puts ("Failed to initialize USB MSC " ); return false;
116
117
}
117
118
return true;
118
119
}
You can’t perform that action at this time.
0 commit comments