device: added verbose_level attribute

This commit is contained in:
Gwenhael Goavec-Merou 2025-06-03 11:24:36 +02:00
parent 5f6c1bfcd4
commit c6d4a8bff1
2 changed files with 2 additions and 1 deletions

View File

@ -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()) {

View File

@ -70,6 +70,7 @@ class Device {
enum prog_mode _mode;
bool _verify; /**< verify flash write */
bool _verbose;
int8_t _verbose_level;
bool _quiet;
};