Skip to content

Commit 4c26bef

Browse files
committed
@sommesoft suggestion and remove future todo's
1 parent 7335a0b commit 4c26bef

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

adafruit_mprls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def __init__(self, i2c_bus, *, addr=_MPRLS_DEFAULT_ADDR,
8787
if eoc_pin is not None:
8888
self._eoc.direction = Direction.INPUT
8989

90+
if psi_min >= psi_max:
91+
raise RuntimeError("Min PSI must be < max!")
9092
self._psimax = psi_max
9193
self._psimin = psi_min
9294
# That's pretty much it, there's no ID register :(

docs/index.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,9 @@ Table of Contents
2323
.. toctree::
2424
:caption: Tutorials
2525

26-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
27-
the toctree above for use later.
28-
2926
.. toctree::
3027
:caption: Related Products
3128

32-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
33-
the toctree above for use later.
34-
3529
.. toctree::
3630
:caption: Other Links
3731

0 commit comments

Comments
 (0)