Skip to content

Commit

Permalink
delay between sections
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrils committed Sep 14, 2023
1 parent 1c4af86 commit c3036f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renogybt/BaseClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from threading import Timer
import logging
import configparser
import time
from .Utils import bytes_to_int, int_to_bytes, crc16_modbus
from .BLE import DeviceManager, Device

Expand Down Expand Up @@ -71,6 +72,7 @@ def on_data_received(self, response):
self.data = {}
else:
self.section_index += 1
time.sleep(0.5)
self.read_section()
else:
logging.warn("on_data_received: unknown operation={}".format(operation))
Expand Down

0 comments on commit c3036f5

Please sign in to comment.