Hi Naruto,
I saw in your sources that the sanity checks for checking if Ex_AUTO_FAN_PINs are equal to FAN_PIN have been commented out. Since I didn't understand why it didn't work with it enabled I did investigate and found the problem:
In the Arduino sources PIN_Ax are defined as numbers, which then gets assigned to Ax.
'#if x == y' as used in the sanity checks seems not to work with the const uint8_t values (probably those are unknown to the pre processor). Therefore in variant.h all occurences of Ax have been replaced by PIN_Ax which then is a #define and works as expected.
Hi Naruto, I saw in your sources that the sanity checks for checking if
Ex_AUTO_FAN_PIN
s are equal toFAN_PIN
have been commented out. Since I didn't understand why it didn't work with it enabled I did investigate and found the problem:In the Arduino sources
PIN_Ax
are defined as numbers, which then gets assigned toAx
.For example:
'
#if x == y
' as used in the sanity checks seems not to work with theconst uint8_t
values (probably those are unknown to the pre processor). Therefore in variant.h all occurences ofAx
have been replaced byPIN_Ax
which then is a #define and works as expected.Just a very minor change, but hopefully helpful.
Kind regards, Stefan.