core: don't allow open-source and open-drain flags at the same time
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 15 Nov 2017 13:39:58 +0000 (14:39 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 30 Nov 2017 17:03:12 +0000 (18:03 +0100)
commit1749610c31cb701fb4864278167ed531ea1c7b63
tree614455d4b7019b8c2caa0ac946a45ee992acf5e1
parent57ecc14c4d7f6408062403484f800f78c0dda25c
core: don't allow open-source and open-drain flags at the same time

If the hardware actually allowed it, the electrical result would be
disastrous. This has only recently been fixed in the kernel, so add
a relevant check to the library as well.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c
tests/tests-line.c