Update xsns_22_sr04.ino

Fix debug compile error
This commit is contained in:
Theo Arends 2019-03-11 16:49:59 +01:00
parent 5927f7501c
commit 58d075deff

View File

@ -28,6 +28,8 @@
* - https://www.dfrobot.com/wiki/index.php/Weather-proof_Ultrasonic_Sensor_SKU_:_SEN0207 * - https://www.dfrobot.com/wiki/index.php/Weather-proof_Ultrasonic_Sensor_SKU_:_SEN0207
\*********************************************************************************************/ \*********************************************************************************************/
#define XSNS_22 22
uint8_t sr04_echo_pin = 0; uint8_t sr04_echo_pin = 0;
uint8_t sr04_trig_pin = 0; uint8_t sr04_trig_pin = 0;
real64_t distance; real64_t distance;
@ -73,8 +75,6 @@ void Sr04Show(bool json)
* Interface * Interface
\*********************************************************************************************/ \*********************************************************************************************/
#define XSNS_22
bool Xsns22(uint8_t function) bool Xsns22(uint8_t function)
{ {
bool result = false; bool result = false;