Skip to content

Commit

Permalink
[iec][fuji] get_directory_position
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 1, 2023
1 parent df635a3 commit d1cee96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/device/iec/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ void iecFuji::get_directory_position()
if (_current_open_directory_slot == -1)
{
Debug_print("No currently open directory\n");
response_queue.push("error: no currently open directory\r");
response = "no currently open directory";
// Send error
return;
}
Expand All @@ -982,7 +982,7 @@ void iecFuji::get_directory_position()
{
Debug_println("Invalid directory position");
// Send error.
response_queue.push("error: invalid directory position\r");
response = "invalid directory position";
return;
}

Expand All @@ -994,9 +994,8 @@ void iecFuji::get_directory_position()
{
char reply[8];
itoa(pos, reply, 10);
response_queue.push(std::string(reply));
response = std::string(reply);
}
// no need for ok
}

void iecFuji::set_directory_position()
Expand Down

0 comments on commit d1cee96

Please sign in to comment.