File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,14 @@ void Wippersnapper_V2::provision() {
96
96
if (WsV2._sdCardV2 ->isSDCardInitialized ()) {
97
97
return ; // SD card initialized, cede control back to loop()
98
98
} else {
99
+ uint8_t cspin = WsV2.pin_sd_cs ;
100
+ if (cspin == 255 ) {
101
+ // No CS pin found in config.json, so we've used the default
102
+ cspin = SD_CS_PIN;
103
+ }
99
104
haltErrorV2 (" SD initialization failed.\n Do not reformat the card!\n Is the "
100
105
" card correctly inserted?\n Is there a wiring/soldering "
101
- " problem\n Is the config.json file malformed?" );
102
- // SD card not initialized, so just continue with online-mode provisioning
106
+ " problem\n Is the config.json file malformed?\n SD CS Pin: " + String (cspin));
103
107
}
104
108
105
109
#ifdef USE_DISPLAY
You can’t perform that action at this time.
0 commit comments