diff options
Diffstat (limited to 'src/detector.c')
-rw-r--r-- | src/detector.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c index 55e9ec87..dcc5830d 100644 --- a/src/detector.c +++ b/src/detector.c @@ -248,6 +248,14 @@ struct detector *get_detector_geometry(const char *filename) det->panels[np].clen = atof(bits[2]); } else if ( strcmp(path[1], "res") == 0 ) { det->panels[np].res = atof(bits[2]); + } 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'; + } } else { ERROR("Unrecognised field '%s'\n", path[1]); } |