Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfbcb78

Browse files
committed
Check for ARDUINO macro instead of __x86_64__
1 parent d376972 commit cfbcb78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AH/Hardware/ButtonMatrix.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void ButtonMatrix<Derived, NumRows, NumCols>::update() {
2222

2323
for (size_t row = 0; row < NumRows; row++) { // scan through all rows
2424
pinMode(rowPins[row], OUTPUT); // make the current row Lo-Z 0V
25-
#if !defined(__AVR__) && !defined(__x86_64__)
25+
#if !defined(__AVR__) && defined(ARDUINO)
2626
delayMicroseconds(1);
2727
#endif
2828
for (size_t col = 0; col < NumCols; col++) { // scan through all columns

src/AH/Hardware/ExtendedInputOutput/AnalogMultiplex.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void AnalogMultiplex<N>::setMuxAddress(uint8_t address) {
252252
ExtIO::digitalWrite(addressPin, (address & mask) != 0 ? HIGH : LOW);
253253
mask <<= 1;
254254
}
255-
#if !defined(__AVR__) && !defined(__x86_64__)
255+
#if !defined(__AVR__) && defined(ARDUINO)
256256
delayMicroseconds(1);
257257
#endif
258258
}

0 commit comments

Comments
 (0)