From 52a79150d7e40884b57a4ce491dacd7bfb47fb07 Mon Sep 17 00:00:00 2001 From: brentru Date: Wed, 1 Sep 2021 17:38:23 -0400 Subject: [PATCH] use prod --- src/Wippersnapper.cpp | 4 ++-- src/Wippersnapper.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Wippersnapper.cpp b/src/Wippersnapper.cpp index 770a5cdd7..e424a0266 100644 --- a/src/Wippersnapper.cpp +++ b/src/Wippersnapper.cpp @@ -387,10 +387,10 @@ bool cbSignalMsg(pb_istream_t *stream, const pb_field_t *field, void **arg) { is_success = false; WS.pinCfgCompleted = false; } - // configured! + // If this is the initial configuration if (!WS.pinCfgCompleted) { + WS_DEBUG_PRINTLN("Initial Pin Configuration Complete!"); WS.pinCfgCompleted = true; - WS_DEBUG_PRINTLN("Initial Pin Configuration Completed!"); } } else if (field->tag == wippersnapper_signal_v1_CreateSignalRequest_pin_events_tag) { diff --git a/src/Wippersnapper.h b/src/Wippersnapper.h index 6824904d6..81019c990 100644 --- a/src/Wippersnapper.h +++ b/src/Wippersnapper.h @@ -49,11 +49,11 @@ #endif // Uncomment the following use the staging IO server // -#define USE_STAGING -#define IO_MQTT_SERVER "io.adafruit.us" ///< Adafruit IO MQTT Server +//#define USE_STAGING +//#define IO_MQTT_SERVER "io.adafruit.us" ///< Adafruit IO MQTT Server -//#define IO_MQTT_SERVER \ -// "io.adafruit.com" ///< Adafruit IO MQTT Server (Production) +#define IO_MQTT_SERVER \ + "io.adafruit.com" ///< Adafruit IO MQTT Server (Production) #ifdef USE_TINYUSB #include "provisioning/tinyusb/Wippersnapper_FS.h"