Fixed freeze in TouchTunes scan

Made adsb_map.py compatible with Python 3
This commit is contained in:
furrtek
2017-11-08 21:08:46 +01:00
parent d517bc31ec
commit 196518457f
8 changed files with 80 additions and 37 deletions
+3 -2
View File
@@ -62,6 +62,7 @@ void TouchTunesView::on_tx_progress(const uint32_t progress, const bool done) {
if (pin == TOUCHTUNES_MAX_PIN) {
stop_tx();
} else {
transmitter_model.disable();
pin++;
field_pin.set_value(pin);
start_tx(scan_button_index);
@@ -71,9 +72,9 @@ void TouchTunesView::on_tx_progress(const uint32_t progress, const bool done) {
}
void TouchTunesView::start_tx(const uint32_t button_index) {
std::string fragments;
std::string fragments = { "" };
size_t bit;
uint64_t frame_data { 0 };
uint64_t frame_data;
if (check_scan.value()) {
scan_button_index = button_index;