Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "CUL fans" sind.
Wenn Sie sich von dieser Gruppe abmelden und keine E-Mails mehr von dieser Gruppe erhalten möchten, senden Sie eine E-Mail an cul-fans+u...@googlegroups.com.Weitere Optionen: https://groups.google.com/d/optout
--- rf_send.c (revision 405)
+++ rf_send.c (working copy)
@@ -58,11 +58,17 @@
static void
send_bit(uint8_t bit)
{
- CC1100_OUT_PORT |= _BV(CC1100_OUT_PIN); // High
- my_delay_us(bit ? TMUL(onehigh) : TMUL(zerohigh));
+ uint16_t hightime = bit ? TMUL(onehigh) : TMUL(zerohigh);
+ if (hightime) {
+ CC1100_OUT_PORT |= _BV(CC1100_OUT_PIN); // High
+ my_delay_us(hightime);
+ }
- CC1100_OUT_PORT &= ~_BV(CC1100_OUT_PIN); // Low
- my_delay_us(bit ? TMUL(onelow) : TMUL(zerolow));
+ uint16_t lowtime = bit ? TMUL(onelow) : TMUL(zerolow);
+ if (lowtime) {
+ CC1100_OUT_PORT &= ~_BV(CC1100_OUT_PIN); // Low
+ my_delay_us(lowtime);
+ }
}
#else