fixed inverted presence check

sipo
Ondřej Hruška 7 years ago
parent 18e76ad060
commit 9e65c8409a
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 2
      units/1wire/unit_1wire.c

@ -171,7 +171,7 @@ static bool ow_reset(Unit *unit)
ow_release_line(unit);
PTIM_MicroDelay(118);
presence = ow_sample_line(unit);
presence = !ow_sample_line(unit);
}
vPortExitCritical();

Loading…
Cancel
Save