Skip to content

Commit

Permalink
docs: warn users if they have a very common bad file name issue
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Oct 21, 2024
1 parent fd296c9 commit bd481b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/SCSI2SD/src/firmware/inquiry.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void s2s_scsiInquiry()
allocationLength = 254;
}

// "real" hard drives send back exactly allocationLenth bytes, padded
// "real" hard drives send back exactly allocationLength bytes, padded
// with zeroes. This only seems to happen for Inquiry responses, and not
// other commands that also supply an allocation length such as Mode Sense or
// Request Sense.
Expand Down
1 change: 1 addition & 0 deletions src/BlueSCSI_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

// Configuration and log file paths
#define CONFIGFILE "bluescsi.ini"
#define CONFIGFILE_BAD "bluescsi.ini.txt"
#define LOGFILE "log.txt"
#define CRASHFILE "err.txt"

Expand Down
10 changes: 5 additions & 5 deletions src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,12 +1031,12 @@ void s2s_configInit(S2S_BoardCfg* config)
{
char tmp[64];

if (SD.exists(CONFIGFILE))
{
if (SD.exists(CONFIGFILE)) {
log("Reading configuration from " CONFIGFILE);
}
else
{
} else {
if (SD.exists(CONFIGFILE_BAD)) {
log("ERROR: Please remove the .txt file extension from the config file: ", CONFIGFILE_BAD);
}
log("Config file " CONFIGFILE " not found, using defaults");
}

Expand Down

0 comments on commit bd481b1

Please sign in to comment.