some if simplifications
This commit is contained in:
parent
e27d44a388
commit
992eebabae
@ -20,19 +20,11 @@ public class DigitalInput {
|
||||
}
|
||||
|
||||
public void setValue(int value) {
|
||||
if(value > 0){
|
||||
this.value = true;
|
||||
}else{
|
||||
this.value = false;
|
||||
}
|
||||
this.value = value > 0;
|
||||
}
|
||||
|
||||
public void setValue(char value) {
|
||||
if(value == 'H'){
|
||||
this.value = true;
|
||||
}else{
|
||||
this.value = false;
|
||||
}
|
||||
this.value = value == 'H';
|
||||
}
|
||||
|
||||
public boolean getValue() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user