Fixed writeRaw checking for null characters

Changed O to lower-case
This commit is contained in:
Mark van Renswoude 2016-12-09 21:06:18 +01:00
parent 2e8007d510
commit a4d7396ed9
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ void SegmentDisplay::writeRaw(char const* value)
byte digitMask = 1 << (digits - 1);
byte charIndex = 0;
while (charIndex < digits && value[charIndex] != '\0')
while (charIndex < digits)
{
writeDisplay(value[charIndex], digitMask);

View File

@ -216,12 +216,12 @@
#define CharN SegmentC | SegmentE | SegmentG
/**
*
* _
* | |
* |_|
*
**/
#define CharO SegmentA | SegmentB | SegmentC | SegmentD | SegmentE | SegmentF
#define CharO SegmentC | SegmentD | SegmentE | SegmentG
/**
* _