mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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.
This commit is contained in:
parent
57555ca849
commit
adfe9ac306
@ -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