fix(nodes): changing window status sensor to have unequipped nodes return 'window is closed' status

Refs: #3
This commit is contained in:
adrien balleyguier
2026-06-04 21:01:42 +02:00
committed by Klagarge
parent 94e0518fa6
commit 3cdfbef680
+1 -1
View File
@@ -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;
} }