diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-02-02 12:38:31 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-07-14 13:49:49 +0000 |
commit | e9b6b2e4cdbd991645fb088974b66f44dc766bdc (patch) | |
tree | e9ea0587aa7541d4c890479b8a8fd2fcca72223c /nitrocli/src | |
parent | 5e153b45b4b9faaad469ad54baf17bdd9a33f59b (diff) | |
download | nitrocli-e9b6b2e4cdbd991645fb088974b66f44dc766bdc.tar.gz nitrocli-e9b6b2e4cdbd991645fb088974b66f44dc766bdc.tar.bz2 |
Replace get_*_firmware_version with get_firmware_version
In nitrokey 0.4.0, the get_{minor,major}_firmware_version methods have
been replaced with the get_firmware_version method.
Diffstat (limited to 'nitrocli/src')
-rw-r--r-- | nitrocli/src/commands.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nitrocli/src/commands.rs b/nitrocli/src/commands.rs index cf6f841..808db79 100644 --- a/nitrocli/src/commands.rs +++ b/nitrocli/src/commands.rs @@ -331,13 +331,12 @@ fn print_status( r#"Status: model: {model} serial number: 0x{id} - firmware version: {fwv0}.{fwv1} + firmware version: {fwv} user retry count: {urc} admin retry count: {arc}"#, model = model, id = serial_number, - fwv0 = device.get_major_firmware_version(), - fwv1 = device.get_minor_firmware_version(), + fwv = device.get_firmware_version(), urc = device.get_user_retry_count(), arc = device.get_admin_retry_count(), )?; |