Skip to content

Commit e3a5b6c

Browse files
authored
Merge pull request #50 from Lyr3x/v1.3.1
2 parents 28f65d6 + 22bbc44 commit e3a5b6c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

components/roode/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
CONF_RESTORE_VALUES: 'set_restore_values',
3131
CONF_INVERT_DIRECTION: 'set_invert_direction',
3232
CONF_ADVISED_SENSOR_ORIENTATION: 'set_advised_sensor_orientation',
33+
CONF_CALIBRATION: 'set_calibration',
34+
CONF_ROI_CALIBRATION: 'set_roi_calibration'
3335
}
3436
CONFIG_SCHEMA = (
3537
cv.Schema(

components/roode/roode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ namespace esphome
228228
delay(1000);
229229
int ROI_size = min(8, max(4, function_of_the_distance));
230230
Roode::roi_width_ = ROI_size;
231-
Roode::roi_height_ = ROI_size;
231+
Roode::roi_height_ = ROI_size*2;
232232

233233
delay(250);
234234

components/roode/roode.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace esphome
1515
{
1616
#define NOBODY 0
1717
#define SOMEONE 1
18-
#define VERSION "v1.3"
18+
#define VERSION "v1.3.1"
1919
#define EEPROM_SIZE 512
2020
static int LEFT = 0;
2121
static int RIGHT = 1;
@@ -57,6 +57,7 @@ namespace esphome
5757
void dump_config() override;
5858

5959
void set_calibration(bool val) { calibration_ = val; }
60+
void set_roi_calibration(bool val) { roi_calibration_ = val; }
6061
void set_max_threshold_percentage(int val) { max_threshold_percentage_ = val; }
6162
void set_min_threshold_percentage(int val) { min_threshold_percentage_ = val; }
6263
void set_roi_height(int height) { roi_height_ = height; }

0 commit comments

Comments
 (0)