From 9e04a6f69c40fb8c802f892dd92b21c50a9914d2 Mon Sep 17 00:00:00 2001 From: nthnn Date: Mon, 25 Mar 2024 00:13:29 +0800 Subject: [PATCH] Fixed model on SD for CI workflow pipeline compliance. --- examples/model_on_sd/model_on_sd.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/model_on_sd/model_on_sd.ino b/examples/model_on_sd/model_on_sd.ino index 7237397..2b3e5d7 100644 --- a/examples/model_on_sd/model_on_sd.ino +++ b/examples/model_on_sd/model_on_sd.ino @@ -23,6 +23,9 @@ #include #include +// CS pin definition for SD card +#define SD_CS_PIN 5 + // Function to train the neural network and save the trained model to a file void trainAndSave() { // Create a Diwa object @@ -134,7 +137,7 @@ void setup() { Serial.begin(115200); // Initialize the SD card connected to ESP32 via SPI - if(!SD.begin()) { + if(!SD.begin(SD_CS_PIN)) { Serial.println(F("Something went wrong initializing SD card.")); while(true); }