mirror of https://github.com/sqfmi/Watchy.git
Use WIFI_CONFIGURED
parent
b8eeda70c6
commit
b786f24240
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "Watchy",
|
"name": "Watchy",
|
||||||
"version": "1.4.7",
|
"version": "1.4.9",
|
||||||
"description": "Watchy - An Open Source E-Paper Watch by SQFMI",
|
"description": "Watchy - An Open Source E-Paper Watch by SQFMI",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name=Watchy
|
name=Watchy
|
||||||
version=1.4.7
|
version=1.4.9
|
||||||
author=SQFMI
|
author=SQFMI
|
||||||
maintainer=SQFMI
|
maintainer=SQFMI
|
||||||
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
|
sentence=Watchy - An Open Source E-Paper Watch by SQFMI
|
||||||
|
|
|
@ -349,12 +349,14 @@ void Watchy::showAbout() {
|
||||||
display.print("h");
|
display.print("h");
|
||||||
display.print(minutes);
|
display.print(minutes);
|
||||||
display.println("m");
|
display.println("m");
|
||||||
if(connectWiFi()){
|
if(WIFI_CONFIGURED){
|
||||||
display.print("SSID: ");
|
display.print("SSID: ");
|
||||||
display.println(WiFi.SSID());
|
display.println(WiFi.SSID());
|
||||||
display.println("IP address: ");
|
display.println("IP: ");
|
||||||
display.println(WiFi.localIP());
|
display.println(WiFi.localIP());
|
||||||
WiFi.mode(WIFI_OFF);
|
WiFi.mode(WIFI_OFF);
|
||||||
|
}else{
|
||||||
|
display.println("WiFi Not Setup");
|
||||||
}
|
}
|
||||||
display.display(false); // full refresh
|
display.display(false); // full refresh
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
// Versioning
|
// Versioning
|
||||||
#define WATCHY_LIB_VER "1.4.7"
|
#define WATCHY_LIB_VER "1.4.9"
|
||||||
|
|
||||||
//pins
|
//pins
|
||||||
#if !defined(ARDUINO_WATCHY_V10) && !defined(ARDUINO_WATCHY_V15) && !defined(ARDUINO_WATCHY_V20)
|
#if !defined(ARDUINO_WATCHY_V10) && !defined(ARDUINO_WATCHY_V15) && !defined(ARDUINO_WATCHY_V20)
|
||||||
|
|
Loading…
Reference in New Issue