From 3fbad518be91ec031c0bbbc487c01bdc069e8b9f Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 27 Mar 2017 01:03:41 +0200 Subject: tvlight: PROGMEM-pwmtable has to be static --- tv_light/tv_light.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) inline uint8_t pwmValue(uint8_t level) { - const uint8_t pwmtable[101] PROGMEM = { + static const uint8_t pwmtable[101] PROGMEM = { 0, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, -- cgit v1.2.3