diff options
| author | manuel <manuel@mausz.at> | 2017-03-27 01:03:41 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2017-03-27 01:03:41 +0200 |
| commit | 3fbad518be91ec031c0bbbc487c01bdc069e8b9f (patch) | |
| tree | efa73d0124589336a3c83544c7b3635c826538bd | |
| parent | aa540decde1b2bafb52b6db1bfd9f1d9d7aa37b9 (diff) | |
| download | arduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.tar.gz arduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.tar.bz2 arduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.zip | |
tvlight: PROGMEM-pwmtable has to be static
| -rw-r--r-- | tv_light/tv_light.ino | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tv_light/tv_light.ino b/tv_light/tv_light.ino index 655be24..0e82fe3 100644 --- a/tv_light/tv_light.ino +++ b/tv_light/tv_light.ino | |||
| @@ -288,7 +288,7 @@ void flipRelay(struct sensor_t *sensor, bool send_update) | |||
| 288 | 288 | ||
| 289 | inline uint8_t pwmValue(uint8_t level) | 289 | inline uint8_t pwmValue(uint8_t level) |
| 290 | { | 290 | { |
| 291 | const uint8_t pwmtable[101] PROGMEM = { | 291 | static const uint8_t pwmtable[101] PROGMEM = { |
| 292 | 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, | 292 | 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, |
| 293 | 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, | 293 | 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, |
| 294 | 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, | 294 | 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, |
