Skip to content

Commit 32beb42

Browse files
committed
minor
1 parent a14a81a commit 32beb42

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

‎buzzer.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ void soundalarm(){
147147
#defineBUZ_CHAN 0
148148

149149
voidplugged(){
150+
// usb melody
150151
tone(buzzer_pin, NOTE_C5, 150); // F6
151152
tone(buzzer_pin, NOTE_A5, 100); // F5
152153
tone(buzzer_pin, NOTE_F4, 100); // F5

‎neopixel_helper.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bool DEBUG_neohelp = false;
1313

1414
uint16_tNEOBRIGHTNESS=100;
1515
intNEONUMPIXELS=5;
16-
#defineNEOPIXELSTYPENEO_GRB + NEO_KHZ800
16+
#defineNEOPIXELSTYPENEO_RGB + NEO_KHZ800
1717

1818
#include<Adafruit_NeoPixel.h>
1919
// Adafruit_NeoPixel strip = Adafruit_NeoPixel();
@@ -52,7 +52,7 @@ void init_strip(int pin){
5252
strip.setPin(pin);
5353
strip.setBrightness(NEOBRIGHTNESS);
5454
strip.updateLength(NEONUMPIXELS);
55-
strip.updateType(NEO_GRB+NEO_KHZ800);
55+
strip.updateType(NEOPIXELSTYPE);
5656
strip.begin();
5757
strip.show();
5858
strip.show(); // on purpose, ensure its blanked for glitched resets

‎wifi_funcs.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ bool rebootAfterDowntime = true;
2323
longdowntimeRestart=1*60000; // millis
2424
longdownms=0;
2525

26+
uint16_t_lastrssiperc=0;
27+
2628
/** IP to String? */
2729
StringtoStringIp(IPAddressip){
2830
Stringres="";
@@ -265,9 +267,10 @@ void checkWifi(bool recon = true, bool restart = false){
265267
}
266268
}
267269
else{
270+
_lastrssiperc=getRSSIasQuality();
268271
if(debug_wifi){
269272
Serial.println("[WIFI] WiFi is CONNECTED");
270-
Serial.println("[WIFI] RSSI: "+(String)getRSSIasQuality());
273+
Serial.println("[WIFI] RSSI: "+(String)_lastrssiperc);
271274
}
272275
#ifdefUSENEOIND
273276
indSetColor(np_green);

0 commit comments

Comments
(0)