aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-14 17:23:50 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:19 +0100
commit920281923fe09573b4c797dbcc524d8c902da2da (patch)
treea798396abc746fb6a3402c5fd9c36a9c5c9c9b0f /src/detector.c
parentdbb76151b8d3656223a42661869c60cc5e4d809e (diff)
Backwards compatability in badrow direction
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/detector.c b/src/detector.c
index b9239a0d..156cd188 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -413,11 +413,14 @@ static int parse_field_for_panel(struct panel *panel, const char *key,
} else if ( strcmp(key, "badrow_direction") == 0 ) {
panel->badrow = val[0]; /* First character only */
if ( (panel->badrow != 'x') && (panel->badrow != 'y')
+ && (panel->badrow != 'f') && (panel->badrow != 's')
&& (panel->badrow != '-') ) {
- ERROR("badrow_direction must be x, y or '-'\n");
+ ERROR("badrow_direction must be x, y, f, s or '-'\n");
ERROR("Assuming '-'\n.");
panel->badrow = '-';
}
+ if ( panel->badrow == 'x' ) panel->badrow = 'f';
+ if ( panel->badrow == 'y' ) panel->badrow = 's';
} else if ( strcmp(key, "no_index") == 0 ) {
panel->no_index = atob(val);
} else if ( strcmp(key, "fs") == 0 ) {