Closed pdaehne closed 4 months ago
Since restructuring the code on Apr 14, 2023, there seems to be a small typo in BlueRetro/main/wired/detect.c which prevents the auto detection of certain HW1 wired adapters. The buggy line 34 currently looks like this:
if (io & BIT(detect_pin[i] - 32)) {
In my opinion this should be
if (io & BIT(detect_pin[i] < 32 ? detect_pin[i] : detect_pin[i] - 32)) {
or much simpler
if (io & BIT(detect_pin[i] & 31)) {
Great catch!
Thank a lot!!
Since restructuring the code on Apr 14, 2023, there seems to be a small typo in BlueRetro/main/wired/detect.c which prevents the auto detection of certain HW1 wired adapters. The buggy line 34 currently looks like this:
if (io & BIT(detect_pin[i] - 32)) {
In my opinion this should be
if (io & BIT(detect_pin[i] < 32 ? detect_pin[i] : detect_pin[i] - 32)) {
or much simpler
if (io & BIT(detect_pin[i] & 31)) {