Skip to content

Commit 8210ef0

Browse files
Removed redundant code
1 parent ca3621c commit 8210ef0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ArduinoXVC.ino

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,19 +317,15 @@ ISR(TIMER1_OVF_vect)
317317
if (uiDataIndex < uiDataLen)
318318
{
319319
setBitInVector((uint8_t*)aucDataTDx, uiDataIndex, digitalRead(TDO_PIN));
320+
digitalWrite_OD(TCK_PIN, HIGH);
321+
eState = EN_JTAG_STATE_FALLINGEDGE;
320322
}
321-
322-
if (uiDataIndex >= uiDataLen)
323+
else
323324
{
324325
/* Shifted in last bit - transfer complete */
325326
digitalWrite(LED_PIN, LOW);
326327
eState = EN_JTAG_STATE_DONE;
327328
}
328-
else
329-
{
330-
digitalWrite_OD(TCK_PIN, HIGH);
331-
eState = EN_JTAG_STATE_FALLINGEDGE;
332-
}
333329
break;
334330

335331
case EN_JTAG_STATE_FALLINGEDGE:
@@ -349,4 +345,4 @@ ISR(TIMER1_OVF_vect)
349345
default:
350346
;
351347
}
352-
}
348+
}

0 commit comments

Comments
 (0)