Tandy 1000 Converter, basicly works, except for packet mismatches
- Caused by too much processing in the converter... - Easy to fix if I remove the macro engine...
This commit is contained in:
parent
05c20112e9
commit
46916defa5
12 changed files with 578 additions and 33 deletions
11
main.c
11
main.c
|
@ -102,10 +102,16 @@ int main(void)
|
|||
uint8_t ledTimer = 15; // Enable LED for a short time
|
||||
while ( 1 )
|
||||
{
|
||||
// Setup the scanning module
|
||||
scan_setup();
|
||||
|
||||
while ( 1 )
|
||||
{
|
||||
// Acquire Key Indices
|
||||
scan_loop();
|
||||
// Loop continuously until scan_loop returns 0
|
||||
cli();
|
||||
while ( scan_loop() );
|
||||
sei();
|
||||
|
||||
// Send keypresses over USB if the ISR has signalled that it's time
|
||||
if ( !sendKeypresses )
|
||||
|
@ -122,6 +128,9 @@ int main(void)
|
|||
|
||||
// Indicate Error, if valid
|
||||
errorLED( ledTimer );
|
||||
|
||||
if ( ledTimer > 0 )
|
||||
ledTimer--;
|
||||
}
|
||||
|
||||
// Loop should never get here (indicate error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue