Skip to content

Commit

Permalink
Merge pull request #8 from jrcutler/master
Browse files Browse the repository at this point in the history
Make "get" methods const
  • Loading branch information
PaintYourDragon committed Oct 8, 2013
2 parents 4aa6b34 + 0a65646 commit 2214980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Adafruit_NeoPixel.cpp
Expand Up @@ -863,7 +863,7 @@ uint32_t Adafruit_NeoPixel::Color(uint8_t r, uint8_t g, uint8_t b) {
}

// Query color from previously-set pixel (returns packed 32-bit RGB value)
uint32_t Adafruit_NeoPixel::getPixelColor(uint16_t n) {
uint32_t Adafruit_NeoPixel::getPixelColor(uint16_t n) const {

if(n < numLEDs) {
uint16_t ofs = n * 3;
Expand Down
2 changes: 1 addition & 1 deletion Adafruit_NeoPixel.h
Expand Up @@ -53,7 +53,7 @@ class Adafruit_NeoPixel {
static uint32_t
Color(uint8_t r, uint8_t g, uint8_t b);
uint32_t
getPixelColor(uint16_t n);
getPixelColor(uint16_t n) const;

private:

Expand Down

0 comments on commit 2214980

Please sign in to comment.