We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca3621c commit 8210ef0Copy full SHA for 8210ef0
ArduinoXVC.ino
@@ -317,19 +317,15 @@ ISR(TIMER1_OVF_vect)
317
if (uiDataIndex < uiDataLen)
318
{
319
setBitInVector((uint8_t*)aucDataTDx, uiDataIndex, digitalRead(TDO_PIN));
320
+ digitalWrite_OD(TCK_PIN, HIGH);
321
+ eState = EN_JTAG_STATE_FALLINGEDGE;
322
}
-
- if (uiDataIndex >= uiDataLen)
323
+ else
324
325
/* Shifted in last bit - transfer complete */
326
digitalWrite(LED_PIN, LOW);
327
eState = EN_JTAG_STATE_DONE;
328
- else
329
- {
330
- digitalWrite_OD(TCK_PIN, HIGH);
331
- eState = EN_JTAG_STATE_FALLINGEDGE;
332
- }
333
break;
334
335
case EN_JTAG_STATE_FALLINGEDGE:
@@ -349,4 +345,4 @@ ISR(TIMER1_OVF_vect)
349
345
default:
350
346
;
351
347
352
-}
348
+}
0 commit comments