Moved FEATURE_GSCHISSENE_DIODE into config-system
This commit is contained in:
1 file changed
+4
-3
+4
-3
@@ -85,9 +85,10 @@ std::array<bool, 10> Helper<OUT, IN1, IN2, IN3, IN4, IN5>::read()
|
||||
result[7] = digitalRead(IN4);
|
||||
result[9] = digitalRead(IN5);
|
||||
|
||||
#ifdef FEATURE_GSCHISSENE_DIODE
|
||||
if (result[8] && result[9]) result[9] = 0;
|
||||
#endif
|
||||
if (configs.feature.gschissene_diode.value)
|
||||
{
|
||||
if (result[8] && result[9]) result[9] = 0;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user