Browse Source

sns: fix ci default.h overriding values in sensor.h

mcspr-patch-1
Maxim Prokhorov 4 years ago
parent
commit
139b31287c
2 changed files with 16 additions and 74 deletions
  1. +0
    -58
      code/espurna/config/defaults.h
  2. +16
    -16
      code/espurna/config/sensors.h

+ 0
- 58
code/espurna/config/defaults.h View File

@ -820,64 +820,6 @@
#define LED8_PIN_INVERSE 0 #define LED8_PIN_INVERSE 0
#endif #endif
// -----------------------------------------------------------------------------
// Digital Inputs
// -----------------------------------------------------------------------------
#ifndef DIGITAL1_PIN
#define DIGITAL1_PIN GPIO_NONE
#endif
#ifndef DIGITAL2_PIN
#define DIGITAL2_PIN GPIO_NONE
#endif
#ifndef DIGITAL3_PIN
#define DIGITAL3_PIN GPIO_NONE
#endif
#ifndef DIGITAL4_PIN
#define DIGITAL4_PIN GPIO_NONE
#endif
#ifndef DIGITAL5_PIN
#define DIGITAL5_PIN GPIO_NONE
#endif
#ifndef DIGITAL6_PIN
#define DIGITAL6_PIN GPIO_NONE
#endif
#ifndef DIGITAL7_PIN
#define DIGITAL7_PIN GPIO_NONE
#endif
#ifndef DIGITAL8_PIN
#define DIGITAL8_PIN GPIO_NONE
#endif
// -----------------------------------------------------------------------------
// Events
// -----------------------------------------------------------------------------
#ifndef EVENTS1_PIN
#define EVENTS1_PIN GPIO_NONE
#endif
#ifndef EVENTS2_PIN
#define EVENTS2_PIN GPIO_NONE
#endif
#ifndef EVENTS3_PIN
#define EVENTS3_PIN GPIO_NONE
#endif
#ifndef EVENTS4_PIN
#define EVENTS4_PIN GPIO_NONE
#endif
#ifndef EVENTS5_PIN
#define EVENTS5_PIN GPIO_NONE
#endif
#ifndef EVENTS6_PIN
#define EVENTS6_PIN GPIO_NONE
#endif
#ifndef EVENTS7_PIN
#define EVENTS7_PIN GPIO_NONE
#endif
#ifndef EVENTS8_PIN
#define EVENTS8_PIN GPIO_NONE
#endif
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// Lights // Lights
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------


+ 16
- 16
code/espurna/config/sensors.h View File

@ -310,7 +310,7 @@
#endif #endif
#ifndef DIGITAL1_PIN #ifndef DIGITAL1_PIN
#define DIGITAL1_PIN 2
#define DIGITAL1_PIN 5
#endif #endif
#ifndef DIGITAL1_PIN_MODE #ifndef DIGITAL1_PIN_MODE
@ -322,7 +322,7 @@
#endif #endif
#ifndef DIGITAL2_PIN #ifndef DIGITAL2_PIN
#define DIGITAL2_PIN 2
#define DIGITAL2_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL2_PIN_MODE #ifndef DIGITAL2_PIN_MODE
@ -334,7 +334,7 @@
#endif #endif
#ifndef DIGITAL3_PIN #ifndef DIGITAL3_PIN
#define DIGITAL3_PIN 2
#define DIGITAL3_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL3_PIN_MODE #ifndef DIGITAL3_PIN_MODE
@ -346,7 +346,7 @@
#endif #endif
#ifndef DIGITAL4_PIN #ifndef DIGITAL4_PIN
#define DIGITAL4_PIN 2
#define DIGITAL4_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL4_PIN_MODE #ifndef DIGITAL4_PIN_MODE
@ -358,7 +358,7 @@
#endif #endif
#ifndef DIGITAL5_PIN #ifndef DIGITAL5_PIN
#define DIGITAL5_PIN 2
#define DIGITAL5_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL5_PIN_MODE #ifndef DIGITAL5_PIN_MODE
@ -370,7 +370,7 @@
#endif #endif
#ifndef DIGITAL6_PIN #ifndef DIGITAL6_PIN
#define DIGITAL6_PIN 2
#define DIGITAL6_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL6_PIN_MODE #ifndef DIGITAL6_PIN_MODE
@ -382,7 +382,7 @@
#endif #endif
#ifndef DIGITAL7_PIN #ifndef DIGITAL7_PIN
#define DIGITAL7_PIN 2
#define DIGITAL7_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL7_PIN_MODE #ifndef DIGITAL7_PIN_MODE
@ -394,7 +394,7 @@
#endif #endif
#ifndef DIGITAL8_PIN #ifndef DIGITAL8_PIN
#define DIGITAL8_PIN 2
#define DIGITAL8_PIN GPIO_NONE
#endif #endif
#ifndef DIGITAL8_PIN_MODE #ifndef DIGITAL8_PIN_MODE
@ -505,7 +505,7 @@
#endif #endif
#ifndef EVENTS1_PIN #ifndef EVENTS1_PIN
#define EVENTS1_PIN 2 // GPIO to monitor
#define EVENTS1_PIN 5 // GPIO to monitor
#endif #endif
#ifndef EVENTS1_PIN_MODE #ifndef EVENTS1_PIN_MODE
@ -521,7 +521,7 @@
#endif #endif
#ifndef EVENTS2_PIN #ifndef EVENTS2_PIN
#define EVENTS2_PIN 2 // GPIO to monitor
#define EVENTS2_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS2_PIN_MODE #ifndef EVENTS2_PIN_MODE
@ -537,7 +537,7 @@
#endif #endif
#ifndef EVENTS3_PIN #ifndef EVENTS3_PIN
#define EVENTS3_PIN 2 // GPIO to monitor
#define EVENTS3_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS3_PIN_MODE #ifndef EVENTS3_PIN_MODE
@ -553,7 +553,7 @@
#endif #endif
#ifndef EVENTS4_PIN #ifndef EVENTS4_PIN
#define EVENTS4_PIN 2 // GPIO to monitor
#define EVENTS4_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS4_PIN_MODE #ifndef EVENTS4_PIN_MODE
@ -569,7 +569,7 @@
#endif #endif
#ifndef EVENTS5_PIN #ifndef EVENTS5_PIN
#define EVENTS5_PIN 2 // GPIO to monitor
#define EVENTS5_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS5_PIN_MODE #ifndef EVENTS5_PIN_MODE
@ -585,7 +585,7 @@
#endif #endif
#ifndef EVENTS6_PIN #ifndef EVENTS6_PIN
#define EVENTS6_PIN 2 // GPIO to monitor
#define EVENTS6_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS6_PIN_MODE #ifndef EVENTS6_PIN_MODE
@ -601,7 +601,7 @@
#endif #endif
#ifndef EVENTS7_PIN #ifndef EVENTS7_PIN
#define EVENTS7_PIN 2 // GPIO to monitor
#define EVENTS7_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS7_PIN_MODE #ifndef EVENTS7_PIN_MODE
@ -617,7 +617,7 @@
#endif #endif
#ifndef EVENTS8_PIN #ifndef EVENTS8_PIN
#define EVENTS8_PIN 2 // GPIO to monitor
#define EVENTS8_PIN GPIO_NONE // GPIO to monitor
#endif #endif
#ifndef EVENTS8_PIN_MODE #ifndef EVENTS8_PIN_MODE


Loading…
Cancel
Save