improved serial handeling added aux state info
This commit is contained in:
parent
296d38e8b0
commit
20b4663887
4
pwm.cpp
4
pwm.cpp
|
@ -25,7 +25,7 @@ Pwm16b::Pwm16b( volatile unsigned char *timerControlRegisterA, volatile unsigned
|
|||
|
||||
bool Pwm16b::isOn()
|
||||
{
|
||||
return (*_timerControlRegisterA != (1<<WGM11));
|
||||
return *_timerControlRegisterA != (1<<WGM11);
|
||||
}
|
||||
|
||||
void Pwm16b::off()
|
||||
|
@ -94,7 +94,7 @@ Pwm8b::Pwm8b( volatile unsigned char *timerControlRegisterA, volatile unsigned c
|
|||
|
||||
bool Pwm8b::isOn()
|
||||
{
|
||||
return (*_timerControlRegisterA & 0x11111100) != 0);
|
||||
return (*_timerControlRegisterA & 0x11111100) != 0;
|
||||
}
|
||||
|
||||
void Pwm8b::off()
|
||||
|
|
Loading…
Reference in a new issue