jtag: fix warning (uninitialized tms)

This commit is contained in:
Gwenhael Goavec-Merou 2023-07-27 07:39:20 +02:00
parent ab9eff7412
commit 3955a70843
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ int Jtag::shiftIR(unsigned char *tdi, unsigned char *tdo, int irlen, int end_sta
void Jtag::set_state(int newState)
{
unsigned char tms;
unsigned char tms = 0;
while (newState != _state) {
display("_state : %16s(%02d) -> %s(%02d) ",
getStateName((tapState_t)_state),