Commit 06b054ad authored by Annika Vauth's avatar Annika Vauth
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 8e7bda3b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -332,9 +332,7 @@ void CapacitiveTransferModule::run(Event* event) {
                    row = static_cast<size_t>(std::floor(matrix_rows_ / 2));
                }

                // To support designs in which every other row has a mirrored crosstalk matrix:
                // --> add a switch for this.
                // if config parameter is true, replace e.g. "row" with "max_row_ - row - 1"
                // Some designs have a mirrored crosstalk matrix which is flipped in every other row or column:
                auto row_to_use = row;
                if(flip_odd_rows_ == true && (ypixel % 2 == 1)) {
                    row_to_use = max_row_ - row - 1;