Browse Source

Merge pull request #1758 from mcspr/ldr-sensor/defines

Rename NTC/LDR_SENSOR to NTC/LDR_SUPPORT
master
Xose Pérez 5 years ago
committed by GitHub
parent
commit
79ee2a7ea4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      code/espurna/config/hardware.h
  2. +1
    -1
      code/espurna/sensors/AnalogSensor.h

+ 2
- 2
code/espurna/config/hardware.h View File

@ -3758,8 +3758,8 @@
// will not work on real life since they all share GPIO // will not work on real life since they all share GPIO
// but it's OK to test build // but it's OK to test build
#define EMON_ANALOG_SUPPORT 1 #define EMON_ANALOG_SUPPORT 1
#define NTC_SENSOR 1
#define LDR_SENSOR 1
#define NTC_SUPPORT 1
#define LDR_SUPPORT 1
#define PULSEMETER_SUPPORT 1 #define PULSEMETER_SUPPORT 1


+ 1
- 1
code/espurna/sensors/AnalogSensor.h View File

@ -3,7 +3,7 @@
// Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com> // Copyright (C) 2017-2019 by Xose Pérez <xose dot perez at gmail dot com>
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#if SENSOR_SUPPORT && (ANALOG_SUPPORT || NTC_SUPPORT || LDR_SENSOR)
#if SENSOR_SUPPORT && (ANALOG_SUPPORT || NTC_SUPPORT || LDR_SUPPORT)
#pragma once #pragma once


Loading…
Cancel
Save