v0.8.988
This commit is contained in:
@@ -425,11 +425,12 @@ void Display::_setRSSI(int rssi) {
|
||||
return;
|
||||
#endif
|
||||
char rssiG[3];
|
||||
if(rssi >= -50) strlcpy(rssiG, "\004\006", 3);
|
||||
if(rssi >= -60 && rssi < -50) strlcpy(rssiG, "\004\005", 3);
|
||||
if(rssi >= -70 && rssi < -60) strlcpy(rssiG, "\004\002", 3);
|
||||
if(rssi >= -80 && rssi < -70) strlcpy(rssiG, "\003\002", 3);
|
||||
if(rssi < -80 || rssi >= 0) strlcpy(rssiG, "\001\002", 3);
|
||||
int rssi_steps[] = {RSSI_STEPS};
|
||||
if(rssi >= rssi_steps[0]) strlcpy(rssiG, "\004\006", 3);
|
||||
if(rssi >= rssi_steps[1] && rssi < rssi_steps[0]) strlcpy(rssiG, "\004\005", 3);
|
||||
if(rssi >= rssi_steps[2] && rssi < rssi_steps[1]) strlcpy(rssiG, "\004\002", 3);
|
||||
if(rssi >= rssi_steps[3] && rssi < rssi_steps[2]) strlcpy(rssiG, "\003\002", 3);
|
||||
if(rssi < rssi_steps[3] || rssi >= 0) strlcpy(rssiG, "\001\002", 3);
|
||||
_rssi->setText(rssiG);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef options_h
|
||||
#define options_h
|
||||
|
||||
#define YOVERSION "0.8.981"
|
||||
#define YOVERSION "0.8.988"
|
||||
|
||||
/*******************************************************
|
||||
DO NOT EDIT THIS FILE.
|
||||
@@ -291,6 +291,9 @@ The connection tables are located here https://github.com/e2002/yoradio#connecti
|
||||
#ifndef RSSI_DIGIT
|
||||
#define RSSI_DIGIT false // Extended weather
|
||||
#endif
|
||||
#ifndef RSSI_STEPS
|
||||
#define RSSI_STEPS -50,-60,-70,-80
|
||||
#endif
|
||||
/*
|
||||
*** ST7735 display submodel ***
|
||||
INITR_BLACKTAB // 1.8' https://aliexpress.ru/item/1005002822797745.html
|
||||
|
||||
Reference in New Issue
Block a user