fixed inverted signal
authorOthmar Gsenger <otti@realraum.at>
Wed, 14 Dec 2011 14:26:28 +0000 (14:26 +0000)
committerOthmar Gsenger <otti@realraum.at>
Wed, 14 Dec 2011 14:26:28 +0000 (14:26 +0000)
rf433rcv/teensy/example.c

index 36d1b47..fdc8980 100644 (file)
@@ -162,9 +162,9 @@ ISR(TIMER0_COMPA_vect)
   {
     if ( rf_send_buffer[rf_send_buf_pos/8] & (1<< (rf_send_buf_pos%8)))
     {
-     PORTF&=~1;
-    } else {
      PORTF|=1;
+    } else {
+     PORTF&=~1;
     }
     //rf_send_buffer[rf_send/8]>>=1;
     rf_send_buf_pos++;