summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2017-03-27 01:03:41 +0200
committermanuel <manuel@mausz.at>2017-03-27 01:03:41 +0200
commit3fbad518be91ec031c0bbbc487c01bdc069e8b9f (patch)
treeefa73d0124589336a3c83544c7b3635c826538bd
parentaa540decde1b2bafb52b6db1bfd9f1d9d7aa37b9 (diff)
downloadarduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.tar.gz
arduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.tar.bz2
arduino-3fbad518be91ec031c0bbbc487c01bdc069e8b9f.zip
tvlight: PROGMEM-pwmtable has to be static
-rw-r--r--tv_light/tv_light.ino2
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
289inline uint8_t pwmValue(uint8_t level) 289inline 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,