Skip to content

Commit

Permalink
Use anonymous namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Nov 6, 2020
1 parent 36fa814 commit 134175d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sming/Libraries/DIAL/sample/app/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#define WIFI_PWD "PleaseEnterPass"
#endif

static Dial::Client client;
namespace
{
Dial::Client client;

void onRun(Dial::App& app, HttpResponse& response)
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 134175d

Please sign in to comment.