File tree Expand file tree Collapse file tree 4 files changed +8
-18
lines changed Expand file tree Collapse file tree 4 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,14 @@ void Wippersnapper_V2::provision() {
80
80
#ifdef USE_TINYUSB
81
81
WsV2._fileSystemV2 = new Wippersnapper_FS ();
82
82
#elif defined(USE_LITTLEFS)
83
- _littleFSV2 = new WipperSnapper_LittleFS ();
83
+ WsV2. _littleFSV2 = new WipperSnapper_LittleFS ();
84
84
#endif
85
85
86
86
// Determine if app is in SDLogger mode
87
87
#ifdef USE_TINYUSB
88
88
WsV2._fileSystemV2 ->GetPinSDCS ();
89
89
#elif defined(USE_LITTLEFS)
90
- _littleFSV2->GetPinSDCS ();
90
+ WsV2. _littleFSV2 ->GetPinSDCS ();
91
91
#elif defined(OFFLINE_MODE_WOKWI)
92
92
WsV2.pin_sd_cs = 15 ;
93
93
#endif
@@ -126,7 +126,7 @@ void Wippersnapper_V2::provision() {
126
126
#ifdef USE_TINYUSB
127
127
WsV2._fileSystemV2 ->ParseFileSecrets ();
128
128
#elif defined(USE_LITTLEFS)
129
- _littleFSV2->ParseFileSecrets ();
129
+ WsV2. _littleFSV2 ->ParseFileSecrets ();
130
130
#else
131
131
check_valid_ssid (); // non-fs-backed, sets global credentials within network
132
132
// iface
Original file line number Diff line number Diff line change @@ -181,19 +181,19 @@ bool I2cHardware::ScanBus(wippersnapper_i2c_I2cBusScanned *scan_results) {
181
181
// Check endTransmission()'s return code (Arduino-ESP32 ONLY)
182
182
else if (endTransmissionRC == 3 ) {
183
183
WS_DEBUG_PRINTLN (" [i2c] Did not find device: NACK on transmit of data!" );
184
- return false ;
184
+ continue ;
185
185
} else if (endTransmissionRC == 2 ) {
186
186
// WS_DEBUG_PRINTLN("[i2c] Did not find device: NACK on transmit of
187
187
// address!");
188
188
continue ;
189
189
} else if (endTransmissionRC == 1 ) {
190
190
WS_DEBUG_PRINTLN (
191
191
" [i2c] Did not find device: data too long to fit in xmit buffer!" );
192
- return false ;
192
+ continue ;
193
193
} else if (endTransmissionRC == 4 ) {
194
194
WS_DEBUG_PRINTLN (
195
195
" [i2c] Did not find device: Unspecified bus error occured!" );
196
- return false ;
196
+ continue ;
197
197
} else if (endTransmissionRC == 5 ) {
198
198
WS_DEBUG_PRINTLN (" [i2c] Did not find device: Bus timed out!" );
199
199
continue ;
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ ws_sdcard::ws_sdcard() {
59
59
did_init = InitSdCard (WsV2.pin_sd_cs );
60
60
}
61
61
62
- // Case 2: Try to initialize the SD card with the default pin (within
63
- // ws_adapters .h)
62
+ // Case 2: Try to initialize the SD card with the default
63
+ // board SD CS pin (found within ws_boards .h)
64
64
if (!did_init) {
65
65
if (InitSdCard (SD_CS_PIN)) {
66
66
// Attempt to update the config file with the default pin
Original file line number Diff line number Diff line change 203
203
#define USE_PSRAM ///< Board has PSRAM, use it for dynamic memory allocation
204
204
#define I2c_STEMMA_WIRE1
205
205
#define SD_CS_PIN 33
206
- #elif defined(ARDUINO_SAMD_NANO_33_IOT )
207
- #define BOARD_ID "nano-33-iot"
208
- #define USE_STATUS_LED
209
- #define STATUS_LED_PIN 13
210
- #define SD_CS_PIN 33
211
- #elif defined(ARDUINO_SAMD_MKRWIFI1010 )
212
- #define BOARD_ID "mkrwifi1010"
213
- #define USE_STATUS_LED
214
- #define STATUS_LED_PIN 6
215
- #define SD_CS_PIN 33
216
206
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W )
217
207
#define BOARD_ID "rpi-pico-w"
218
208
#define USE_TINYUSB
You can’t perform that action at this time.
0 commit comments