Skip to content

Commit

Permalink
Removed setting MACON1_TXPAUS and MACON1_RXPAUS
Browse files Browse the repository at this point in the history
Change suggested by @mindstormsking in #134:
The bits MACON1_TXPAUS and MACON1_RXPAUS are used only in full-duplex mode, while according to all other settings, half-duplex mode is used.
  • Loading branch information
njh committed Jul 28, 2018
1 parent 6ba1605 commit b5a13d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enc28j60.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ byte ENC28J60::initialize (uint16_t size, const byte* macaddr, byte csPin) {
writeRegByte(ERXFCON, ERXFCON_UCEN|ERXFCON_CRCEN|ERXFCON_PMEN|ERXFCON_BCEN);
writeReg(EPMM0, 0x303f);
writeReg(EPMCS, 0xf7f9);
writeRegByte(MACON1, MACON1_MARXEN|MACON1_TXPAUS|MACON1_RXPAUS);
writeRegByte(MACON1, MACON1_MARXEN);
writeOp(ENC28J60_BIT_FIELD_SET, MACON3,
MACON3_PADCFG0|MACON3_TXCRCEN|MACON3_FRMLNEN);
writeReg(MAIPG, 0x0C12);
Expand Down

0 comments on commit b5a13d6

Please sign in to comment.