forked from btclock/btclock_v3
Improve data source selection, clean up unused preferences
This commit is contained in:
parent
bc3e5afe51
commit
64e518bf58
13 changed files with 155 additions and 104 deletions
|
@ -13,7 +13,7 @@ namespace V2Notify
|
|||
void setupV2Notify()
|
||||
{
|
||||
String hostname = "ws.btclock.dev";
|
||||
if (preferences.getBool("ceEnabled", DEFAULT_CUSTOM_ENDPOINT_ENABLED))
|
||||
if (getDataSource() == CUSTOM_SOURCE)
|
||||
{
|
||||
Serial.println(F("Connecting to custom source"));
|
||||
hostname = preferences.getString("ceEndpoint", DEFAULT_CUSTOM_ENDPOINT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue