1
0
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:
Marian Buschsieweke 2023-05-19 23:00:22 +02:00
parent 57555ca849
commit adfe9ac306
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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;
}