From 34c16975681d00da8ce6aa89e2c11da8f9e9350f Mon Sep 17 00:00:00 2001 From: Carlo Parata Date: Mon, 21 Oct 2019 11:51:18 +0200 Subject: [PATCH] Fix issue on directional swipe --- examples/Flight1/Flight1.ino | 4 ++-- library.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Flight1/Flight1.ino b/examples/Flight1/Flight1.ino index 316a078..f36cc25 100644 --- a/examples/Flight1/Flight1.ino +++ b/examples/Flight1/Flight1.ino @@ -1367,7 +1367,7 @@ void loop() } //if distance < 1.3 m - if (RangeStatus != 4) + if (RangeStatus == 0) { // we have a valid range. status = sensor_vl53l1_left->VL53L1X_GetDistance(&distance_left); @@ -1413,7 +1413,7 @@ void loop() SerialPort.println("GetRangeStatus right sensor failed"); } //if distance < 1.3 m - if (RangeStatus != 4) + if (RangeStatus == 0) { // we have a valid range. status = sensor_vl53l1_right->VL53L1X_GetDistance(&distance_right); diff --git a/library.properties b/library.properties index f80dc5c..7a8a508 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=STM32duino FP_Examples -version=1.3.0 +version=1.3.1 author=STMicroelectronics maintainer=stm32duino sentence=Provides several Function Packs that combine the usage of several X-NUCLEO boards