Skip to content

Commit

Permalink
Merge pull request #212 from thinkyhead/patch_warnings_PR
Browse files Browse the repository at this point in the history
Suppress sign compare warnings
  • Loading branch information
PaintYourDragon authored Nov 2, 2019
2 parents eadb2f6 + a4d353c commit f4cf3c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Adafruit_NeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2076,18 +2076,18 @@ void Adafruit_NeoPixel::show(void) {

for(t = time0;; t = time0) {
if(pix & mask) t = time1;
while(*timeValue < period);
while(*timeValue < (unsigned)period);
*portSet = pinMask;
*timeReset = TC_CCR_CLKEN | TC_CCR_SWTRG;
while(*timeValue < t);
while(*timeValue < (unsigned)t);
*portClear = pinMask;
if(!(mask >>= 1)) { // This 'inside-out' loop logic utilizes
if(p >= end) break; // idle time to minimize inter-byte delays.
pix = *p++;
mask = 0x80;
}
}
while(*timeValue < period); // Wait for last bit
while(*timeValue < (unsigned)period); // Wait for last bit
TC_Stop(TC1, 0);

#endif // end Due
Expand Down

0 comments on commit f4cf3c1

Please sign in to comment.