ESP-MQTT-JSON-Digital-LEDs icon indicating copy to clipboard operation
ESP-MQTT-JSON-Digital-LEDs copied to clipboard

ESP_MQTT_Digital_LEDs:388: error: 'MILLION' was not declared in this scope

Open leoyanger opened this issue 8 years ago • 2 comments

ESP_MQTT_Digital_LEDs:388: error: 'MILLION' was not declared in this scope

   unsigned int kelvin  = MILLION / color_temp;

                          ^

exit status 1 'MILLION' was not declared in this scope

leoyanger avatar Jul 07 '17 10:07 leoyanger

Yeah, I got this. I just changed it to 1000000 instead

timmo001 avatar Jul 09 '17 13:07 timmo001

Either replace MILLION with 1000000 as he mentioned above, or simply define MILLION:

int MILLION = 100000;

Makr91 avatar Jul 22 '17 01:07 Makr91