Skip to content

Commit c26d2a9

Browse files
committed
Removed detach() call in test case
1 parent c4ea5e6 commit c26d2a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libraries/tests/mbed/timeout/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ void toggleOff (void);
2525
void toggleOn (void) {
2626
out = 1;
2727
led = 1;
28-
timer.detach();
2928
timer.attach_us(toggleOff, 10000);
3029
}
3130

3231
void toggleOff(void) {
3332
out = 0;
3433
led = 0;
35-
timer.detach();
3634
timer.attach_us(toggleOn, 30000);
3735
}
3836

0 commit comments

Comments
 (0)