micropython/drivers/onewire
Andreas Motl fbfea3b440 drivers/onewire: Fix undefined variable errors.
On CPython, and with pylint, the variables MATCH_ROM and SEARCH_ROM are
undefined.  This code works in MicroPython because these variables are
constants and the MicroPython parser/compiler optimises them out.  But it
is not valid Python because they are technically undefined within the scope
they are used.

This commit makes the code valid Python code.  The const part is removed
completely because these constants are part of the public API and so cannot
be moved to the global scope (where they could still use the MicroPython
const optimisation).
2020-03-25 01:09:14 +11:00
..
ds18x20.py all: Reformat C and Python source code with tools/codeformat.py. 2020-02-28 10:33:03 +11:00
onewire.py drivers/onewire: Fix undefined variable errors. 2020-03-25 01:09:14 +11:00