From 3dc7ebf26384d611d9047a7d33e22377c0a05951 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 1 May 2023 19:39:55 +0200 Subject: [PATCH] Added development version identification define --- firmware/config.h | 1 + firmware/firmware.ino | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/firmware/config.h b/firmware/config.h index 7662823..5c33146 100644 --- a/firmware/config.h +++ b/firmware/config.h @@ -21,3 +21,4 @@ #define MY_NTP_SERVER "de.pool.ntp.org" +#define DEVELOPMENT diff --git a/firmware/firmware.ino b/firmware/firmware.ino index ad31c52..50b0173 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -20,7 +20,12 @@ // D1, D2, D7, D5 uint8_t pins[LIGHTS_COUNT] = { 5, 4, 13, 14 }; +#ifndef DEVELOPMENT IPAddress strip_ip (192, 168, 0, 26); // choose an unique IP Adress +#endif +#ifdef DEVELOPMENT +IPAddress strip_ip (192, 168, 0, 27); // choose an unique IP Adress +#endif IPAddress gateway_ip (192, 168, 0, 1); // Router IP IPAddress subnet_mask(255, 255, 255, 0); IPAddress dns (192, 168, 0, 1);