From e9b6b2e4cdbd991645fb088974b66f44dc766bdc Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sat, 2 Feb 2019 12:38:31 +0000 Subject: 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. --- nitrocli/src/commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nitrocli/src') 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(), )?; -- cgit v1.2.1