kopia lustrzana https://github.com/Max-Plastix/tbeam-helium-mapper
Added missing AXP192 screen message
rodzic
c1155c13e4
commit
6c18350127
|
@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// Version
|
||||
// -----------------------------------------------------------------------------
|
||||
#define APP_NAME "MaxP Mapper"
|
||||
#define APP_VERSION "1.7.2" // 2022-01-28
|
||||
#define APP_VERSION "1.7.3" // 2022-Feb-01
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// CONFIGURATION
|
||||
|
|
|
@ -758,6 +758,10 @@ void setup() {
|
|||
delay(100);
|
||||
gps_setup(); // Init GPS baudrate and messages
|
||||
|
||||
// This is bad.. we can't find the AXP192 PMIC, so no menu key detect:
|
||||
if (!axp192_found)
|
||||
screen_print("** Missing AXP192! **\n");
|
||||
|
||||
Serial.printf("Deadzone: %f.0m @ %f, %f\n", deadzone_radius_m, deadzone_lat, deadzone_lon);
|
||||
}
|
||||
|
||||
|
@ -971,9 +975,9 @@ const char *find_irq_name(void) {
|
|||
else if (axp.isVbusOverVoltageIRQ())
|
||||
irq_name = "VbusOverVoltage";
|
||||
else if (axp.isVbusPlugInIRQ())
|
||||
irq_name = "VbusPlugIn";
|
||||
irq_name = "USB Connected"; // "VbusPlugIn";
|
||||
else if (axp.isVbusRemoveIRQ())
|
||||
irq_name = "VbusRemove";
|
||||
irq_name = "USB Removed"; // "VbusRemove";
|
||||
else if (axp.isVbusLowVHOLDIRQ())
|
||||
irq_name = "VbusLowVHOLD";
|
||||
else if (axp.isBattPlugInIRQ())
|
||||
|
|
Ładowanie…
Reference in New Issue