Skip to content

Commit

Permalink
[iec][fuji] read_directory_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 1, 2023
1 parent 09d7e96 commit 2a4cb53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/device/iec/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ void iecFuji::set_boot_mode()
{
Debug_printf("Invalid # of parameters.\n");
// send error
response_queue.push("error: invalid # of parameters\r");
response = "invalid # of parameters";
return;
}

Expand Down Expand Up @@ -842,7 +842,7 @@ void iecFuji::open_directory()
else
{
// send error
response_queue.push("error: unable to open directory\r");
response = "unable to open directory";
}

response = "ok";
Expand Down Expand Up @@ -952,12 +952,12 @@ void iecFuji::read_directory_entry()

// Output RAW vs non-raw
if (payload[0] == FUJICMD_READ_DIR_ENTRY)
response_queue.push(std::string((const char *)current_entry, maxlen));
response = std::string((const char *)current_entry, maxlen);
else
{
char reply[258];
memset(reply, 0, sizeof(reply));
sprintf(reply, "%s\r", current_entry);
sprintf(reply, "%s", current_entry);
std::string s(reply);
mstr::toPETSCII(s);
response = s;
Expand Down

0 comments on commit 2a4cb53

Please sign in to comment.