We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a684366 commit bc07c93Copy full SHA for bc07c93
1 file changed
src/BlueSCSI_Toolbox.cpp
@@ -251,12 +251,12 @@ void onGetFile10(char * dir_name) {
251
void onSendFilePrep(char * dir_name)
252
{
253
char file_name[32+1];
254
- memset(file_name, '\0', 32+1);
+
255
scsiEnterPhase(DATA_OUT);
256
- for (int i = 0; i < 32+1; ++i)
257
- {
258
- file_name[i] = scsiReadByte();
259
- }
+ scsiRead(static_cast<uint8_t *>(static_cast<void *>(file_name)), 32+1, NULL);
+ file_name[32] = '\0';
+ debuglog("TOOLBOX OPEN FILE FOR WRITE: '", file_name, "'");
260
SD.chdir(dir_name);
261
gFile.open(file_name, FILE_WRITE);
262
SD.chdir("/");
0 commit comments