From 134175d2826b0dfd720efd3ee351ff96fd29bab4 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Fri, 6 Nov 2020 07:37:48 +0000 Subject: [PATCH] Use anonymous namespaces --- Sming/Libraries/DIAL/sample/app/application.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sming/Libraries/DIAL/sample/app/application.cpp b/Sming/Libraries/DIAL/sample/app/application.cpp index 95a5b8daaf..9aee8d7e53 100644 --- a/Sming/Libraries/DIAL/sample/app/application.cpp +++ b/Sming/Libraries/DIAL/sample/app/application.cpp @@ -7,7 +7,9 @@ #define WIFI_PWD "PleaseEnterPass" #endif -static Dial::Client client; +namespace +{ +Dial::Client client; void onRun(Dial::App& app, HttpResponse& response) { @@ -71,6 +73,8 @@ void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reas Serial.println(WifiEvents.getDisconnectReasonDesc(reason)); } +} // namespace + void init() { Serial.begin(SERIAL_BAUD_RATE);