Autoformat

This commit is contained in:
Odd Stråbø 2023-12-08 12:36:26 +01:00
parent 140acba1f5
commit b6a62d123d
4 changed files with 1 additions and 7 deletions

View file

@ -1,6 +1,3 @@
{
"python.linting.mypyEnabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"python.linting.flake8Enabled": true
"editor.formatOnSave": true
}

View file

@ -147,7 +147,6 @@ def rrdupdate(file: str, timestamp: int, data: dict):
def re_read():
rrdtool.create(
RRDFILE,
# "--no-overwrite",

View file

@ -4,7 +4,6 @@ from srnemqtt.lib.feasycom_ble import BTLEUart
from srnemqtt.protocol import construct_request, write
with BTLEUart(MAC, timeout=1) as x:
print(x)
write(x, construct_request(0x0E, words=3))

View file

@ -84,7 +84,6 @@ def discardUntil(fh: RawIOBase, byte: int, timeout=10) -> Optional[int]:
discarded = 0
read_byte = expand(fh.read(1))
while read_byte != byte:
if read_byte is not None:
if not discarded:
log("Discarding", end="")