From 3cdfbef680790a1413df18dad37afe8b892dd662 Mon Sep 17 00:00:00 2001 From: adrien balleyguier Date: Wed, 6 May 2026 08:59:56 +0200 Subject: [PATCH] fix(nodes): changing window status sensor to have unequipped nodes return 'window is closed' status Refs: #3 --- nodes/src/window_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/src/window_status.c b/nodes/src/window_status.c index 3f49374..4115419 100644 --- a/nodes/src/window_status.c +++ b/nodes/src/window_status.c @@ -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; }