Skip to content

Commit

Permalink
Define NOT_AN_INTERRUPT if it's not already
Browse files Browse the repository at this point in the history
Some platforms don't define this macro, so we can define it for ourselves.
  • Loading branch information
dmadison committed Jan 19, 2024
1 parent 79bd516 commit e7e5845
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ServoInput_Platforms.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@

#include <Arduino.h>


// Define interrupt pin macro if it's not already defined by the platform
#ifndef NOT_AN_INTERRUPT
#define NOT_AN_INTERRUPT -1
#endif

// Blanket define to cover all instances
#define SERVOINPUT_PIN_SPECIALIZATION

Expand Down

0 comments on commit e7e5845

Please sign in to comment.