diff --git a/src/device.cpp b/src/device.cpp index 48b62ab..e29cd1d 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -15,7 +15,7 @@ Device::Device(Jtag *jtag, string filename, const string &file_type, _filename(filename), _file_extension(filename.substr(filename.find_last_of(".") +1)), _mode(NONE_MODE), _verify(verify), _verbose(verbose > 0), - _quiet(verbose < 0) + _verbose_level(verbose), _quiet(verbose < 0) { /* extension overwritten by user */ if (!file_type.empty()) { diff --git a/src/device.hpp b/src/device.hpp index d4dd21b..70db627 100644 --- a/src/device.hpp +++ b/src/device.hpp @@ -70,6 +70,7 @@ class Device { enum prog_mode _mode; bool _verify; /**< verify flash write */ bool _verbose; + int8_t _verbose_level; bool _quiet; };