From dce04f88d8a25ce5f6490d60f9ec59f854ff1f46 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 16 Aug 2017 08:27:56 +0200 Subject: Fix FIG print of protection level Really fixes issue #20 --- src/fig0_1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fig0_1.cpp b/src/fig0_1.cpp index 74babbd..f8f9a1b 100644 --- a/src/fig0_1.cpp +++ b/src/fig0_1.cpp @@ -83,10 +83,10 @@ fig_result_t fig0_1(fig0_common_t& fig0, const display_settings_t &disp) r.msgs.emplace_back("long"); if (option == 0x00) { - r.msgs.push_back(strprintf("EEP %d-A", protection_level)); + r.msgs.push_back(strprintf("EEP %d-A", protection_level+1)); } else if (option == 0x01) { - r.msgs.push_back(strprintf("EEP %d-B", protection_level)); + r.msgs.push_back(strprintf("EEP %d-B", protection_level+1)); } else { r.errors.push_back(strprintf("Invalid option %d protection %d", option, protection_level)); -- cgit v1.2.3