Skip to content

Commit

Permalink
Fixing pins for the attiny84.
Browse files Browse the repository at this point in the history
Fix for ACK using the RF69 (bad checksum).
  • Loading branch information
Bryan Stansell committed Apr 15, 2015
1 parent 40741fe commit 21e26f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RF69.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void RF69::sendStart_compat (uint8_t hdr, const void* ptr, uint8_t len) {
for (int i = 0; i < len; ++i)
rf12_data[i] = ((const uint8_t*) ptr)[i];
rf12_hdr = hdr & RF12_HDR_DST ? hdr : (hdr & ~RF12_HDR_MASK) + node;
rf12_crc = _crc16_update(~0, group);
crc = _crc16_update(~0, group);
rxstate = - (2 + rf12_len); // preamble and SYN1/SYN2 are sent by hardware
flushFifo();
setMode(MODE_TRANSMITTER);
Expand Down
3 changes: 3 additions & 0 deletions RF69_avr.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ static void spiConfigPins () {
#define SPI_MISO 4 // PA6, pin 7
#define SPI_MOSI 5 // PA5, pin 8
#define SPI_SCK 6 // PA4, pin 9
#define SPI_MISO 6 // PA6, pin 7
#define SPI_MOSI 5 // PA5, pin 8
#define SPI_SCK 4 // PA4, pin 9

static void spiConfigPins () {
SS_PORT |= _BV(SS_BIT);
Expand Down

0 comments on commit 21e26f2

Please sign in to comment.