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,
|
||||
"python.formatting.provider": "black",
|
||||
"editor.formatOnSave": true,
|
||||
"python.linting.flake8Enabled": true
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
|
|
|
@ -147,7 +147,6 @@ def rrdupdate(file: str, timestamp: int, data: dict):
|
|||
|
||||
|
||||
def re_read():
|
||||
|
||||
rrdtool.create(
|
||||
RRDFILE,
|
||||
# "--no-overwrite",
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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="")
|
||||
|
|
Loading…
Reference in a new issue