From adfe9ac3064466dddafdab25ceea7757f592ca1f Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 19 May 2023 23:00:22 +0200 Subject: [PATCH] drivers/slipdev: fix logic bug A typo resulted in a boolean expression to always be true and the `_poweron()` function to always exit early. This fixes the issue. --- drivers/slipdev/slipdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/slipdev/slipdev.c b/drivers/slipdev/slipdev.c index 1b15c9e6f0..22914b8e5e 100644 --- a/drivers/slipdev/slipdev.c +++ b/drivers/slipdev/slipdev.c @@ -78,8 +78,8 @@ check_end: static void _poweron(slipdev_t *dev) { - if ((dev->state != SLIPDEV_STATE_STANDBY) || - (dev->state != SLIPDEV_STATE_SLEEP)) { + if ((dev->state != SLIPDEV_STATE_STANDBY) && + (dev->state != SLIPDEV_STATE_SLEEP)) { return; }