ftdiJtagMPSSE,ftdipp_mpsse: fix verbose level -> must be an int8_t not uint8_t
This commit is contained in:
parent
5f35867f23
commit
1ab454359f
|
|
@ -29,7 +29,7 @@ using namespace std;
|
|||
#endif
|
||||
|
||||
FtdiJtagMPSSE::FtdiJtagMPSSE(const FTDIpp_MPSSE::mpsse_bit_config &cable,
|
||||
string dev, const string &serial, uint32_t clkHZ, uint8_t verbose):
|
||||
string dev, const string &serial, uint32_t clkHZ, int8_t verbose):
|
||||
FTDIpp_MPSSE(cable, dev, serial, clkHZ, verbose), _ch552WA(false),
|
||||
_write_mode(0), _read_mode(0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
class FtdiJtagMPSSE : public JtagInterface, public FTDIpp_MPSSE {
|
||||
public:
|
||||
FtdiJtagMPSSE(const FTDIpp_MPSSE::mpsse_bit_config &cable, std::string dev,
|
||||
const std::string &serial, uint32_t clkHZ, uint8_t verbose = 0);
|
||||
const std::string &serial, uint32_t clkHZ, int8_t verbose = 0);
|
||||
virtual ~FtdiJtagMPSSE();
|
||||
|
||||
int setClkFreq(uint32_t clkHZ) override;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ using namespace std;
|
|||
do { if (_verbose) fprintf(stdout, __VA_ARGS__);}while(0)
|
||||
|
||||
FTDIpp_MPSSE::FTDIpp_MPSSE(const mpsse_bit_config &cable, const string &dev,
|
||||
const std::string &serial, uint32_t clkHZ, uint8_t verbose):
|
||||
const std::string &serial, uint32_t clkHZ, int8_t verbose):
|
||||
_verbose(verbose > 1), _cable(cable), _vid(0),
|
||||
_pid(0), _bus(-1), _addr(-1),
|
||||
_interface(cable.interface),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class FTDIpp_MPSSE {
|
|||
} mpsse_bit_config;
|
||||
|
||||
FTDIpp_MPSSE(const mpsse_bit_config &cable, const std::string &dev,
|
||||
const std::string &serial, uint32_t clkHZ, uint8_t verbose = 0);
|
||||
const std::string &serial, uint32_t clkHZ, int8_t verbose = 0);
|
||||
~FTDIpp_MPSSE();
|
||||
|
||||
int init(unsigned char latency, unsigned char bitmask_mode,
|
||||
|
|
@ -67,7 +67,7 @@ class FTDIpp_MPSSE {
|
|||
int mpsse_get_buffer_size() {return _buffer_size;}
|
||||
unsigned int udevstufftoint(const char *udevstring, int base);
|
||||
bool search_with_dev(const std::string &device);
|
||||
uint8_t _verbose;
|
||||
int8_t _verbose;
|
||||
mpsse_bit_config _cable;
|
||||
int _vid;
|
||||
int _pid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue