Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
idolpx committed Jun 30, 2023
2 parents 0ff62db + ddf60d8 commit aea7d82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/device/iec/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,11 @@ void iecFuji::open_directory()
{
Debug_println("Fuji cmd: OPEN DIRECTORY");

std::vector<std::string> t = util_tokenize(payload, ':');
std::vector<std::string> t = util_tokenize(payload, ',');

if (t.size() < 3)
{
response_queue.push("error: invalid # of parameters\r");
response = "invalid # of parameters.";
return; // send error
}

Expand All @@ -796,7 +796,7 @@ void iecFuji::open_directory()
if (!_validate_host_slot(hostSlot))
{
// send error
response_queue.push("error: invalid host slot #\r");
response = "invalid host slot #";
return;
}

Expand Down Expand Up @@ -841,7 +841,8 @@ void iecFuji::open_directory()
// send error
response_queue.push("error: unable to open directory\r");
}
response_queue.push("ok\r");

response = "ok";
}

void _set_additional_direntry_details(fsdir_entry_t *f, uint8_t *dest, uint8_t maxlen)
Expand Down

0 comments on commit aea7d82

Please sign in to comment.