Use baud rate from lora.conf or default
This commit is contained in:
@@ -13,7 +13,10 @@ if __name__ == '__main__':
|
|||||||
conf = ConfigParser()
|
conf = ConfigParser()
|
||||||
conf.read("lora.conf")
|
conf.read("lora.conf")
|
||||||
|
|
||||||
root = RN2483(conf.get("DEFAULT", "port"))
|
root = RN2483(
|
||||||
|
conf.get("DEFAULT", "port"),
|
||||||
|
conf.get("DEFAULT", "baud", fallback=57600),
|
||||||
|
)
|
||||||
|
|
||||||
def first_init() -> None:
|
def first_init() -> None:
|
||||||
"""Init our RN2483 after firmware startup."""
|
"""Init our RN2483 after firmware startup."""
|
||||||
|
|||||||
Reference in New Issue
Block a user