diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-23 01:24:04 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-23 01:24:04 +0300 |
commit | 582b342a2ff9243b60ff8aeef7e1a46946d6d8bb (patch) | |
tree | 8722b4c6660ca5b8826db580cffca9274d3cb88b /src/p18/client.cc | |
parent | db36e6fe18e4889adec0a664a3a4291285cfb9c5 (diff) |
p18: fix set-date-time
Diffstat (limited to 'src/p18/client.cc')
-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; |