Skip to content

Commit

Permalink
Fix some spurious warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Oct 10, 2023
1 parent 883fb00 commit 7c6e505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion megaavr/cores/megatinycore/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
#endif
#if defined(USE_TIMERD0_PWM)
#if !defined(TCD0)
#pragma message("Note: This part does not have a TCD, hence there is no PWM from TCD available.")
#if defined(ARDUINO_MAIN)
#pragma message("Note: This part does not have a TCD, hence there is no PWM from TCD available.")
#endif
#undef USE_TIMERD0_PWM
#endif
#endif
Expand Down
5 changes: 3 additions & 2 deletions megaavr/libraries/tinyNeoPixel/tinyNeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

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

tinyNeoPixel::~tinyNeoPixel() {
Expand Down

0 comments on commit 7c6e505

Please sign in to comment.