Skip to content

Commit

Permalink
Adjust RFM95 initialisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kisom committed Mar 1, 2019
1 parent 621f798 commit 4eccd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/feather/wing/rfm95.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class RFM95 : public FeatherWing {
public:
RFM95() { RFM95(RFM95_CS, RFM95_INT, RFM95_RST); }
RFM95() : cs(RFM95_CS), irq(RFM95_INT), rst(RFM95_RST), radio(RFM95_CS, RFM95_INT) {}
RFM95(uint8_t cs, uint8_t irq, uint8_t rst) :
cs(cs), irq(irq), rst(rst), radio(cs, irq) { }

Expand Down

0 comments on commit 4eccd2f

Please sign in to comment.