Warn if --modeac is used together with --oversample.

This commit is contained in:
Oliver Jowett 2014-12-27 21:25:32 +00:00
parent 727a59e8eb
commit 2db9d62c1c
2 changed files with 7 additions and 0 deletions

1
debian/changelog vendored
View file

@ -6,6 +6,7 @@ dump1090-mutability (1.08.2302.14+1mu-4) UNRELEASED; urgency=medium
* Add support for controlling the accuracy of the receiver location
written in the JSON metadata used by the webmap.
* Oversampling is now less scary!
* Warn if --modeac is used together with --oversample.
-- Oliver Jowett <oliver@mutability.co.uk> Sat, 27 Dec 2014 20:08:44 +0000

View file

@ -867,6 +867,12 @@ int main(int argc, char **argv) {
if (Modes.interactive) {signal(SIGWINCH, sigWinchCallback);}
#endif
if (Modes.mode_ac && Modes.oversample) {
fprintf(stderr,
"Warning: --modeac is currently ignored when --oversample is used;\n"
" no ModeA/C messages will be decoded.\n");
}
// Initialization
modesInit();