mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-18 10:00:55 +02:00
Fix "type defaults to 'int'" warning (#210)
This commit is contained in:
committed by
Michael Miller
parent
f9c404de19
commit
e13f9599c8
@@ -64,7 +64,7 @@ void send_pixels_8mhz_800_PortD(uint8_t* pixels, size_t sizePixels, uint8_t pinM
|
|||||||
volatile uint8_t lo; // PORT w/output bit set low
|
volatile uint8_t lo; // PORT w/output bit set low
|
||||||
|
|
||||||
volatile uint8_t n1;
|
volatile uint8_t n1;
|
||||||
volatile n2 = 0; // First, next bits out
|
volatile uint8_t n2 = 0; // First, next bits out
|
||||||
|
|
||||||
// Squeezing an 800 KHz stream out of an 8 MHz chip requires code
|
// Squeezing an 800 KHz stream out of an 8 MHz chip requires code
|
||||||
// specific to each PORT register. At present this is only written
|
// specific to each PORT register. At present this is only written
|
||||||
@@ -189,7 +189,7 @@ void send_pixels_8mhz_800_PortB(uint8_t* pixels, size_t sizePixels, uint8_t pinM
|
|||||||
volatile uint8_t lo; // PORT w/output bit set low
|
volatile uint8_t lo; // PORT w/output bit set low
|
||||||
|
|
||||||
volatile uint8_t n1;
|
volatile uint8_t n1;
|
||||||
volatile n2 = 0; // First, next bits out
|
volatile uint8_t n2 = 0; // First, next bits out
|
||||||
|
|
||||||
// Same as above, just switched to PORTB and stripped of comments.
|
// Same as above, just switched to PORTB and stripped of comments.
|
||||||
hi = PORTB | pinMask;
|
hi = PORTB | pinMask;
|
||||||
@@ -645,4 +645,4 @@ void send_pixels_16mhz_400(uint8_t* pixels, size_t sizePixels, volatile uint8_t*
|
|||||||
#error "CPU SPEED NOT SUPPORTED"
|
#error "CPU SPEED NOT SUPPORTED"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user