Skip to content

Commit

Permalink
update constant name to avoid conflict with LoRa.h, partial fix sudom…
Browse files Browse the repository at this point in the history
  • Loading branch information
paidforby committed Jan 15, 2020
1 parent 4fbea99 commit 3b61485
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/Layer1.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@

// for solar-powered module use these settings:
/*
#define LORA_DEFAULT_CS_PIN 2
#define LORA_DEFAULT_RESET_PIN 5
#define LORA_DEFAULT_DIO0_PIN 16
#define L1_DEFAULT_CS_PIN 2
#define L1_DEFAULT_RESET_PIN 5
#define L1_DEFAULT_DIO0_PIN 16
*/

#define LORA_DEFAULT_CS_PIN 18
#define LORA_DEFAULT_RESET_PIN 23
#define LORA_DEFAULT_DIO0_PIN 26
#define L1_DEFAULT_CS_PIN 18
#define L1_DEFAULT_RESET_PIN 23
#define L1_DEFAULT_DIO0_PIN 26

class Layer1Class {
public:
Expand Down
6 changes: 3 additions & 3 deletions src/Layer1_LoRa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Layer1Class::Layer1Class() :
_hashEntry(0),
_loraInitialized(0),

_csPin(LORA_DEFAULT_CS_PIN),
_resetPin(LORA_DEFAULT_RESET_PIN),
_DIOPin(LORA_DEFAULT_DIO0_PIN),
_csPin(L1_DEFAULT_CS_PIN),
_resetPin(L1_DEFAULT_RESET_PIN),
_DIOPin(L1_DEFAULT_DIO0_PIN),
_spiFrequency(100E3)

{
Expand Down

0 comments on commit 3b61485

Please sign in to comment.