Fix Serial GW constructor
This commit is contained in:
@@ -23,8 +23,9 @@
|
|||||||
|
|
||||||
#define NO_PORTB_PINCHANGES
|
#define NO_PORTB_PINCHANGES
|
||||||
|
|
||||||
#include <MySigningNone.h>
|
|
||||||
#include <MyTransportNRF24.h>
|
#include <MyTransportNRF24.h>
|
||||||
|
#include <MyHwATMega328.h>
|
||||||
|
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
#include <MyParserSerial.h>
|
#include <MyParserSerial.h>
|
||||||
#include <MySensor.h>
|
#include <MySensor.h>
|
||||||
@@ -43,9 +44,11 @@
|
|||||||
// NRFRF24L01 radio driver (set low transmit power by default)
|
// NRFRF24L01 radio driver (set low transmit power by default)
|
||||||
MyTransportNRF24 radio(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW);
|
MyTransportNRF24 radio(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW);
|
||||||
// Message signing driver (none default)
|
// Message signing driver (none default)
|
||||||
MySigningNone signer;
|
//MySigningNone signer;
|
||||||
// Construct MySensors library
|
// Construct MySensors library
|
||||||
MySensor gw(radio, signer);
|
MyHwATMega328 hw;
|
||||||
|
|
||||||
|
MySensor gw(radio, hw);
|
||||||
|
|
||||||
char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
|
char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
|
||||||
int inputPos = 0;
|
int inputPos = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user