Skip to content

Commit

Permalink
[iec][fuji] set_device_filename
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 1, 2023
1 parent 00a14a3 commit 59faad9
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 @@ -1415,11 +1415,11 @@ void iecFuji::set_device_filename()
}
else
{
std::vector<std::string> t = util_tokenize(payload, ':');
std::vector<std::string> t = util_tokenize(payload, ',');
if (t.size() < 4)
{
Debug_printf("not enough parameters.\n");
response_queue.push("error: invalid # of parameters\r");
response = "error: invalid # of parameters";
return; // send error
}
}
Expand All @@ -1437,12 +1437,12 @@ void iecFuji::set_device_filename()
{
Debug_println("BAD DEVICE SLOT");
// Send error
response_queue.push("error: invalid device slot\r");
response = "error: invalid device slot\r";
return;
}

Config.save();
response_queue.push("ok\r");
response = "ok";
}

// Get a 256 byte filename from device slot
Expand Down

0 comments on commit 59faad9

Please sign in to comment.