Merging heads

This commit is contained in:
Srivats P. 2015-05-02 11:46:05 +05:30
commit 7dc7a840f1

View File

@ -302,9 +302,14 @@ void PythonFileFormat::writeEpilogue(QTextStream &out)
out << " # wait for transmit to finish\n";
out << " log.info('waiting for transmit to finish ...')\n";
out << " while True:\n";
out << " time.sleep(5)\n";
out << " tx_stats = drone.getStats(tx_port)\n";
out << " if tx_stats.port_stats[0].state.is_transmit_on == False:\n";
out << " try:\n";
out << " time.sleep(5)\n";
out << " tx_stats = drone.getStats(tx_port)\n";
out << " if tx_stats.port_stats[0].state.is_transmit_on"
" == False:\n";
out << " break\n";
out << " except KeyboardInterrupt:\n";
out << " log.info('transmit interrupted by user')\n";
out << " break\n";
out << "\n";
out << " # stop transmit and capture\n";