Factor out sendBeastSettings(), use it in view1090.

This commit is contained in:
Oliver Jowett 2016-12-29 17:53:04 +00:00
parent 11b6cdba06
commit 0526388bdc
4 changed files with 24 additions and 16 deletions

View file

@ -206,6 +206,10 @@ int main(int argc, char **argv) {
exit(1);
}
sendBeastSettings(c, "Cd"); // Beast binary format, no filters
sendBeastSettings(c, Modes.mode_ac ? "J" : "j"); // Mode A/C on or off
sendBeastSettings(c, Modes.check_crc ? "f" : "F"); // CRC checks on or off
// Keep going till the user does something that stops us
while (!Modes.exit) {
icaoFilterExpire();