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-05-06 08:59:56 +02:00
committed by Klagarge
parent 94e0518fa6
commit 3cdfbef680

View File

@@ -12,6 +12,6 @@ enum error_code window_init(){
enum error_code window_get_value(enum window_status* holder){
// active high
*holder = (gpio_pin_get_dt(&window_switch) ? open : closed);
*holder = (gpio_pin_get_dt(&window_switch) ? closed : open);
return success;
}