1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Frequency tracker script: fixed Euclidean division on HTTP status code check

This commit is contained in:
f4exb 2019-07-27 05:14:10 +02:00
parent 57fa540288
commit 1466883c38

View File

@ -109,7 +109,7 @@ def adjust_channels(sdrangel_ip, sdrangel_port):
frequency = tracking_item['channelFrequency'] + frequency_correction
update_frequency_setting(tracking_item['requestContent'], frequency)
r = requests.patch(url=base_url + f'/deviceset/{device_index}/channel/{channel_index}/settings', json=tracking_item['requestContent'])
if r.status_code / 100 != 2:
if r.status_code // 100 != 2:
remove_keys.append(k)
for k in remove_keys:
tracking_item = TRACKING_DICT.pop(k, None)