From 9a459992948d43b55018dc0733a2fb0eb710ead8 Mon Sep 17 00:00:00 2001 From: Haakan T Johansson Date: Sat, 29 Jul 2023 08:51:02 +0200 Subject: [PATCH] Do not compare verbosity level when passing value along. --- src/ftdipp_mpsse.cpp | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftdipp_mpsse.cpp b/src/ftdipp_mpsse.cpp index 646bc37..629a766 100644 --- a/src/ftdipp_mpsse.cpp +++ b/src/ftdipp_mpsse.cpp @@ -28,7 +28,7 @@ using namespace std; FTDIpp_MPSSE::FTDIpp_MPSSE(const cable_t &cable, const string &dev, const std::string &serial, uint32_t clkHZ, int8_t verbose): - _verbose(verbose > 2), _cable(cable.config), _vid(0), + _verbose(verbose), _cable(cable.config), _vid(0), _pid(0), _index(0), _bus(cable.bus_addr), _addr(cable.device_addr), _bitmode(BITMODE_RESET), diff --git a/src/main.cpp b/src/main.cpp index d090c19..c4bc203 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -256,7 +256,7 @@ int main(int argc, char **argv) pins_config = board->spi_pins_config; try { - spi = new FtdiSpi(cable, pins_config, args.freq, args.verbose > 0); + spi = new FtdiSpi(cable, pins_config, args.freq, args.verbose); } catch (std::exception &e) { printError("Error: Failed to claim cable"); return EXIT_FAILURE;