mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-16 01:52:04 +00:00
Merge remote-tracking branch 'origin/master' into develop-2-master
This commit is contained in:
commit
e0002ef2d5
@ -195,6 +195,10 @@ void scanI2Cdevice()
|
|||||||
LOG_INFO("SHT31 sensor found\n");
|
LOG_INFO("SHT31 sensor found\n");
|
||||||
nodeTelemetrySensorsMap[TelemetrySensorType_SHT31] = addr;
|
nodeTelemetrySensorsMap[TelemetrySensorType_SHT31] = addr;
|
||||||
}
|
}
|
||||||
|
if (addr == SHT31_ADDR) {
|
||||||
|
DEBUG_MSG("SHT31 sensor found\n");
|
||||||
|
nodeTelemetrySensorsMap[TelemetrySensorType_SHT31] = addr;
|
||||||
|
}
|
||||||
if (addr == SHTC3_ADDR) {
|
if (addr == SHTC3_ADDR) {
|
||||||
LOG_INFO("SHTC3 sensor found\n");
|
LOG_INFO("SHTC3 sensor found\n");
|
||||||
nodeTelemetrySensorsMap[TelemetrySensorType_SHTC3] = addr;
|
nodeTelemetrySensorsMap[TelemetrySensorType_SHTC3] = addr;
|
||||||
|
@ -545,6 +545,23 @@ static void drawGPSpowerstat(OLEDDisplay *display, int16_t x, int16_t y, const G
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Draw status when gps is disabled by PMU
|
||||||
|
static void drawGPSpowerstat(OLEDDisplay *display, int16_t x, int16_t y, const GPSStatus *gps)
|
||||||
|
{
|
||||||
|
#ifdef HAS_PMU
|
||||||
|
String displayLine = "GPS disabled";
|
||||||
|
int16_t xPos = display->getStringWidth(displayLine);
|
||||||
|
|
||||||
|
if (!config.position.gps_enabled){
|
||||||
|
display->drawString(x + xPos, y, displayLine);
|
||||||
|
#ifdef GPS_POWER_TOGGLE
|
||||||
|
display->drawString(x + xPos, y - 2 + FONT_HEIGHT_SMALL, " by button");
|
||||||
|
#endif
|
||||||
|
//display->drawString(x + xPos, y + 2, displayLine);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static void drawGPSAltitude(OLEDDisplay *display, int16_t x, int16_t y, const GPSStatus *gps)
|
static void drawGPSAltitude(OLEDDisplay *display, int16_t x, int16_t y, const GPSStatus *gps)
|
||||||
{
|
{
|
||||||
String displayLine = "";
|
String displayLine = "";
|
||||||
|
@ -301,7 +301,6 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define ModuleConfig_AudioConfig_bitrate_ENUMTYPE ModuleConfig_AudioConfig_Audio_Baud
|
#define ModuleConfig_AudioConfig_bitrate_ENUMTYPE ModuleConfig_AudioConfig_Audio_Baud
|
||||||
|
|
||||||
#define ModuleConfig_SerialConfig_baud_ENUMTYPE ModuleConfig_SerialConfig_Serial_Baud
|
#define ModuleConfig_SerialConfig_baud_ENUMTYPE ModuleConfig_SerialConfig_Serial_Baud
|
||||||
|
Loading…
Reference in New Issue
Block a user