aboutsummaryrefslogtreecommitdiff
path: root/src/detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/detector.c')
-rw-r--r--src/detector.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/detector.c b/src/detector.c
index 6a80ac0c..af7b0c0d 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -317,10 +317,11 @@ struct detector *get_detector_geometry(const char *filename)
} else if ( strcmp(path[1], "badrow_direction") == 0 ) {
det->panels[np].badrow = bits[2][0];
if ( (det->panels[np].badrow != 'x')
- && (det->panels[np].badrow != 'y') ) {
- ERROR("badrow_direction must be 'x' or 'y'\n");
- ERROR("Assuming 'x'\n.");
- det->panels[np].badrow = 'x';
+ && (det->panels[np].badrow != 'y')
+ && (det->panels[np].badrow != '-') ) {
+ ERROR("badrow_direction must be x, y or '-'\n");
+ ERROR("Assuming '-'\n.");
+ det->panels[np].badrow = '-';
}
} else if ( strcmp(path[1], "no_index") == 0 ) {
det->panels[np].no_index = atob(bits[2]);