improved serial handeling added aux state info

This commit is contained in:
IMback
2018-09-03 20:47:01 +02:00
parent 296d38e8b0
commit 20b4663887
9 changed files with 676 additions and 659 deletions

View File

@ -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()