nexus: Fix global handling for LIFCL-17

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-03-03 13:46:05 +00:00
parent fba71bd182
commit 685cc23b94

View File

@ -373,7 +373,7 @@ inline bool chip_get_hrow_loc(const ChipInfoPOD *chip, int32_t x, int32_t y, int
{ {
bool y_found = false; bool y_found = false;
for (auto &s : chip->globals->spines) { for (auto &s : chip->globals->spines) {
if (std::abs(y - s.spine_row) < 3) { if (std::abs(y - s.spine_row) <= 3) {
hrow_y = s.spine_row; hrow_y = s.spine_row;
y_found = true; y_found = true;
break; break;