mirror of https://github.com/ARMmbed/mbed-os.git
Removed detach() call in test case
parent
c4ea5e6717
commit
c26d2a990d
|
@ -25,14 +25,12 @@ void toggleOff (void);
|
|||
void toggleOn (void) {
|
||||
out = 1;
|
||||
led = 1;
|
||||
timer.detach();
|
||||
timer.attach_us(toggleOff, 10000);
|
||||
}
|
||||
|
||||
void toggleOff(void) {
|
||||
out = 0;
|
||||
led = 0;
|
||||
timer.detach();
|
||||
timer.attach_us(toggleOn, 30000);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue