mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19633
19633: drivers/slipdev: fix logic bug r=fabian18 a=maribu ### Contribution description A typo resulted in a boolean expression to always be true and the `_poweron()` function to always exit early. This fixes the issue. Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
commit
a08b90c648
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user