diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/p18/client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p18/client.cc b/src/p18/client.cc index 3963b64..1798be9 100644 --- a/src/p18/client.cc +++ b/src/p18/client.cc @@ -202,7 +202,7 @@ std::string Client::packArguments(p18::CommandType commandType, std::vector<std: case CommandType::SetDateTime: { for (int i = 0; i < 6; i++) { - int val = std::stoi(arguments[0]); + int val = std::stoi(arguments[i]); if (i == 0) val -= 2000; buf << std::setw(2) << val; |