Autoformat
This commit is contained in:
parent
140acba1f5
commit
b6a62d123d
4 changed files with 1 additions and 7 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -1,6 +1,3 @@
|
||||||
{
|
{
|
||||||
"python.linting.mypyEnabled": true,
|
"editor.formatOnSave": true
|
||||||
"python.formatting.provider": "black",
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"python.linting.flake8Enabled": true
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,6 @@ def rrdupdate(file: str, timestamp: int, data: dict):
|
||||||
|
|
||||||
|
|
||||||
def re_read():
|
def re_read():
|
||||||
|
|
||||||
rrdtool.create(
|
rrdtool.create(
|
||||||
RRDFILE,
|
RRDFILE,
|
||||||
# "--no-overwrite",
|
# "--no-overwrite",
|
||||||
|
|
|
@ -4,7 +4,6 @@ from srnemqtt.lib.feasycom_ble import BTLEUart
|
||||||
from srnemqtt.protocol import construct_request, write
|
from srnemqtt.protocol import construct_request, write
|
||||||
|
|
||||||
with BTLEUart(MAC, timeout=1) as x:
|
with BTLEUart(MAC, timeout=1) as x:
|
||||||
|
|
||||||
print(x)
|
print(x)
|
||||||
|
|
||||||
write(x, construct_request(0x0E, words=3))
|
write(x, construct_request(0x0E, words=3))
|
||||||
|
|
|
@ -84,7 +84,6 @@ def discardUntil(fh: RawIOBase, byte: int, timeout=10) -> Optional[int]:
|
||||||
discarded = 0
|
discarded = 0
|
||||||
read_byte = expand(fh.read(1))
|
read_byte = expand(fh.read(1))
|
||||||
while read_byte != byte:
|
while read_byte != byte:
|
||||||
|
|
||||||
if read_byte is not None:
|
if read_byte is not None:
|
||||||
if not discarded:
|
if not discarded:
|
||||||
log("Discarding", end="")
|
log("Discarding", end="")
|
||||||
|
|
Loading…
Reference in a new issue