Skip to content

Commit 7995a88

Browse files
authored
Fix first use of io.logo.isTouched() (#480)
1 parent 90e0e27 commit 7995a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/MicroBit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ MicroBit::MicroBit() :
122122
#endif
123123

124124
// uBit.logo is a Capacitive TouchButton, ensure the io pin is set capacitive as well
125-
io.logo.status |= IO_STATUS_CAPACITATIVE_TOUCH;
125+
io.logo.isTouched(TouchMode::Capacitative);
126126

127127
// Add pullup resisitor to IRQ line (it's floating ACTIVE LO)
128128
io.irq1.getDigitalValue();

0 commit comments

Comments
 (0)