Skip to content

Commit

Permalink
Merge pull request #50 from Lyr3x/v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyr3x authored Oct 16, 2021
2 parents 28f65d6 + 22bbc44 commit e3a5b6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions components/roode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
CONF_RESTORE_VALUES: 'set_restore_values',
CONF_INVERT_DIRECTION: 'set_invert_direction',
CONF_ADVISED_SENSOR_ORIENTATION: 'set_advised_sensor_orientation',
CONF_CALIBRATION: 'set_calibration',
CONF_ROI_CALIBRATION: 'set_roi_calibration'
}
CONFIG_SCHEMA = (
cv.Schema(
Expand Down
2 changes: 1 addition & 1 deletion components/roode/roode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ namespace esphome
delay(1000);
int ROI_size = min(8, max(4, function_of_the_distance));
Roode::roi_width_ = ROI_size;
Roode::roi_height_ = ROI_size;
Roode::roi_height_ = ROI_size*2;

delay(250);

Expand Down
3 changes: 2 additions & 1 deletion components/roode/roode.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace esphome
{
#define NOBODY 0
#define SOMEONE 1
#define VERSION "v1.3"
#define VERSION "v1.3.1"
#define EEPROM_SIZE 512
static int LEFT = 0;
static int RIGHT = 1;
Expand Down Expand Up @@ -57,6 +57,7 @@ namespace esphome
void dump_config() override;

void set_calibration(bool val) { calibration_ = val; }
void set_roi_calibration(bool val) { roi_calibration_ = val; }
void set_max_threshold_percentage(int val) { max_threshold_percentage_ = val; }
void set_min_threshold_percentage(int val) { min_threshold_percentage_ = val; }
void set_roi_height(int height) { roi_height_ = height; }
Expand Down

0 comments on commit e3a5b6c

Please sign in to comment.