Beta scanner app

ADSB TX frame index bugfix (OOB)
This commit is contained in:
furrtek 2018-04-19 20:50:32 +01:00
parent 5636764226
commit 3ddc6553ac
5 changed files with 213 additions and 28 deletions

View file

@ -270,12 +270,11 @@ void ADSBTXThread::run() {
chThdSleepMilliseconds(50);
if (frame_index == frames_.size()) {
frame_index++;
if (frame_index >= frames_.size()) {
frame_index = 0;
//if (regen)
// regen--;
} else {
frame_index++;
}
}
}