Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

faster into legacy, remove unused variable

  • Loading branch information...
commit a2be18cb72bb831e642582532be4ee5f154b307f 1 parent 95ffe7e
tz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bluev_sketch/bluevirq.c
4 bluev_sketch/bluevirq.c
View
@@ -245,7 +245,7 @@ ISR(TIMER4_CAPT_vect)
// Legacy Mode
#define LEGABIT (504)
#define USTICS(us) ((us) * (F_CPU/PRESCALE1)/1000000)
- if( legacy > 255 ) {
+ if( legacy > 100 ) {
if( width < USTICS(LEGABIT)/5 ) { // normal bits for ESP
bitcnt = 0;
legacy--;
@@ -273,7 +273,7 @@ ISR(TIMER4_CAPT_vect)
;//UDR2 = UDR0 = '_';
if( bitcnt == 33 ) { // Simulate an infDisplay packet
- unsigned char outb, ix, cks = 0;
+ unsigned char outb, cks = 0;
cks += v1buf[v1head++] = 0xaa; // SOF
cks += v1buf[v1head++] = 0xd8; // Dest - broadcast
cks += v1buf[v1head++] = 0xea; // Source - V1
Please sign in to comment.
Something went wrong with that request. Please try again.