Don't reset threashold when resetting color mode (#932)

* don't reset threshold when changing modes

* updated docs
This commit is contained in:
Peli de Halleux
2019-10-01 13:27:37 -07:00
committed by GitHub
parent d179f18ef3
commit f745079728
3 changed files with 9 additions and 11 deletions

View File

@ -814,10 +814,10 @@ namespace sensors {
export class ThresholdDetector {
public id: number;
public min: number;
public max: number;
public lowThreshold: number;
public highThreshold: number;
private min: number;
private max: number;
private lowThreshold: number;
private highThreshold: number;
public level: number;
public state: ThresholdState;