Skip to content

Commit

Permalink
Add compatibility with mbed core > 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed May 19, 2021
1 parent 03361e2 commit 2298fb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mbed/Servo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
#include <Servo.h>
#include <mbed.h>

#if defined __has_include
# if __has_include ("pinDefinitions.h")
# include "pinDefinitions.h"
# endif
#endif

class ServoImpl {
mbed::DigitalOut *pin;
mbed::Timeout timeout; // calls a callback once when a timeout expires
Expand Down

0 comments on commit 2298fb2

Please sign in to comment.