d3 update

This commit is contained in:
Daniel Pollithy 2017-09-01 13:56:12 +02:00
parent e4de5795ff
commit fdc2876934

View File

@ -51,8 +51,9 @@ def run(server_sock):
while distance < settings.RSSI_DISTANCE and try_counter < settings.MAX_RSSI_TRY_COUNT:
try_counter += 1
distance = btrssi.get_rssi()
if try_counter % 10 == 0:
if False:#try_counter % 10 == 0:
print('Distance to {} at try #{}\trssi={}'.format(address, try_counter, distance))
print('Distance to {} at try #{}\trssi={}'.format(address, try_counter, distance))
time.sleep(settings.DISTANCE_SLEEP)
if distance < settings.RSSI_DISTANCE: