fix(nodes): changing window status sensor to have unequipped nodes return 'window is closed' status
Refs: #3
This commit is contained in:
@@ -12,6 +12,6 @@ enum error_code window_init(){
|
|||||||
|
|
||||||
enum error_code window_get_value(enum window_status* holder){
|
enum error_code window_get_value(enum window_status* holder){
|
||||||
// active high
|
// active high
|
||||||
*holder = (gpio_pin_get_dt(&window_switch) ? open : closed);
|
*holder = (gpio_pin_get_dt(&window_switch) ? closed : open);
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user