Skip to content

Commit

Permalink
Merge pull request #5 from Dragon-Knight/patch-1
Browse files Browse the repository at this point in the history
Fix for ATmega8(A)
  • Loading branch information
Palatis committed Mar 14, 2017
2 parents 0227819 + fb46519 commit 45231be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SoftPWM.h
Expand Up @@ -82,6 +82,9 @@
Palatis::SoftPWM.update(); \
}
#else
#if defined (__AVR_ATmega8__) || defined (__AVR_ATmega8A__)
#define TIMSK1 TIMSK
#endif
#define SOFTPWM_DEFINE_OBJECT_WITH_PWM_LEVELS(CHANNEL_CNT, PWM_LEVELS) \
namespace Palatis { \
CSoftPWM<CHANNEL_CNT, PWM_LEVELS> SoftPWM; \
Expand Down

0 comments on commit 45231be

Please sign in to comment.