ISSUE #18: Corrected problem with setLEDs() caused by changes in the previous version

This commit is contained in:
rjbatista@gmail.com
2012-01-17 22:19:00 +00:00
parent ca9bc6f3bb
commit fb4924cc0a
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
- ISSUE #18: Corrected problem with setLEDs() caused by changes in the previous version.
Version 2.0.0
- Support for the TM1640;

View File

@@ -82,11 +82,11 @@ void TM1638::setLEDs(word leds)
for (int i = 0; i < displays; i++) {
byte color = 0;
if (leds & (1 << i) != 0) {
if ((leds & (1 << i)) != 0) {
color |= TM1638_COLOR_RED;
}
if (leds & (1 << (i + 8)) != 0) {
if ((leds & (1 << (i + 8))) != 0) {
color |= TM1638_COLOR_GREEN;
}