Skip to content

Commit a594753

Browse files
committed
fix warnings
1 parent 1da704f commit a594753

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

megaavr/libraries/tinyNeoPixel/tinyNeoPixel.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
// Constructor when length, pin and type are known at compile-time:
5252
tinyNeoPixel::tinyNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
53-
begun(false), brightness(0), pixels(NULL), latchTime(50), endTime(0) {
53+
begun(false), brightness(0), latchTime(50), pixels(NULL), endTime(0) {
5454
updateType(t);
5555
updateLength(n);
5656
setPin(p);
@@ -62,9 +62,8 @@ tinyNeoPixel::tinyNeoPixel(uint16_t n, uint8_t p, neoPixelType t) :
6262
// command. If using this constructor, MUST follow up with updateType(),
6363
// updateLength(), etc. to establish the strand type, length and pin number!
6464
tinyNeoPixel::tinyNeoPixel() :
65-
begun(false), numLEDs(0), numBytes(0), pin(NOT_A_PIN), brightness(0), pixels(NULL),
66-
rOffset(1), gOffset(0), bOffset(2), wOffset(1), latchTime(50), endTime(0) {
67-
}
65+
begun(false), numLEDs(0), numBytes(0), latchTime(50), pin(NOT_A_PIN), brightness(0), pixels(NULL),
66+
rOffset(1), gOffset(0), bOffset(2), wOffset(1), endTime(0) {
6867

6968
tinyNeoPixel::~tinyNeoPixel() {
7069
if (pixels) {
@@ -1117,9 +1116,6 @@ void tinyNeoPixel::show(uint16_t leds) {
11171116
#if (!defined(MILLIS_USE_TIMERNONE) && !defined(MILLIS_USE_TIMERRTC) && !defined(MILLIS_USE_TIMERRTC_XTAL) && !defined(MILLIS_USE_TIMERRTC_XOSC))
11181117
endTime = micros();
11191118
// Save EOD time for latch on next call
1120-
#pragma message("micros() present. This library assumes the canonical 50 us latch delay; some pixels will wait as long as 250us. In these cases, you must be sure to not call show more often. See documentation.")
1121-
#else
1122-
#pragma message("micros() is not available because millis is disabled from the tools subemnu. It is your responsibility to ensure a sufficient time has passed between calls to show(). See documentation.")
11231119
#endif
11241120
}
11251121

megaavr/libraries/tinyNeoPixel/tinyNeoPixel.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,4 @@ class tinyNeoPixel {
349349
};
350350

351351
#endif // TINYNEOPIXEL_H
352+

megaavr/libraries/tinyNeoPixel_Static/tinyNeoPixel_Static.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,9 +1073,6 @@ void tinyNeoPixel::show(uint16_t leds) {
10731073
#if (!defined(MILLIS_USE_TIMERNONE) && !defined(MILLIS_USE_TIMERRTC) && !defined(MILLIS_USE_TIMERRTC_XTAL) && !defined(MILLIS_USE_TIMERRTC_XOSC))
10741074
endTime = micros();
10751075
// Save EOD time for latch on next call
1076-
#pragma message("micros() present. This library assumes the canonical 50 us latch delay; some pixels will wait as long as 250us. In these cases, you must be sure to not call show more often. See documentation.")
1077-
#else
1078-
#pragma message("micros() is not available because millis is disabled from the tools subemnu. It is your responsibility to ensure a sufficient time has passed between calls to show(). See documentation.")
10791076
#endif
10801077
}
10811078

0 commit comments

Comments
 (0)