Skip to content

Commit

Permalink
compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
DESKTOP-MF6E2D0\aduen committed Dec 2, 2019
1 parent df49076 commit c52eab7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/threadedtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

#include <Arduino.h>

#ifndef MBED_THREAD_H
static_assert(false, "Threaded Timer is only supported on mbed based Arduinos");
#ifndef ARDUINO_ARCH_MBED
# error "ThreadedTimer only runs on Mbed OS based boards"
#else
using namespace rtos;
using namespace events;
#endif // MBED_THREAD_H
#endif // ARDUINO_ARCH_MBED

#define MAX_TIMERS 12

Expand All @@ -25,9 +25,11 @@ class ThreadedTimer
int time_left(int id);

private:
#ifdef MBED_THREAD_H
Thread _event_thread;
EventQueue *_timer_queue;

#endif // MBED_THREAD_H
};


#endif // THREADED_TIMER

0 comments on commit c52eab7

Please sign in to comment.