From: Othmar Gsenger Date: Wed, 14 Dec 2011 14:26:28 +0000 (+0000) Subject: fixed inverted signal X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=46a6fafebf5c7b9c2be5fd0df01ea53967b956ca;p=svn42.git fixed inverted signal --- diff --git a/rf433rcv/teensy/example.c b/rf433rcv/teensy/example.c index 36d1b47..fdc8980 100644 --- a/rf433rcv/teensy/example.c +++ b/rf433rcv/teensy/example.c @@ -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++;