aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NitrokeyManager.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 7b8deaa..9562be1 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -556,8 +556,12 @@ using nitrokey::misc::strcpyT;
break;
}
case DeviceModel::STORAGE: {
- string counter = to_string(hotp_counter);
- strcpyT(payload.slot_counter_s, counter.c_str());
+ if (get_minor_firmware_version() <= 53) {
+ string counter = to_string(hotp_counter);
+ strcpyT(payload.slot_counter_s, counter.c_str());
+ } else {
+ payload.slot_counter = hotp_counter;
+ }
break;
}
default: