Skip to content

Commit 40e12dc

Browse files
committed
Remove printf call from interrupt context
With ARM compiler at least, if we enable DEBUG, the InterruptIn will fail in timeout as the program would crash calling printf in the cbfn as this happens in Interrupt context. Let's remove it
1 parent 309f720 commit 40e12dc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

TESTS/API/InterruptIn/InterruptIn.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ volatile bool result = false;
3333
void cbfn(void)
3434
{
3535
result = true;
36-
DEBUG_PRINTF("\t**** Interrupt Triggered!\n");
3736
}
3837

3938
// Template to check Falling edge and Rising edge interrupts.

0 commit comments

Comments
 (0)