Skip to content

Commit

Permalink
Fix for ATmega8(A)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Knight committed Mar 14, 2017
1 parent 0227819 commit fb46519
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SoftPWM.h
Original file line number Diff line number Diff line change
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 fb46519

Please sign in to comment.