mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-08 12:36:42 +00:00
Trunk
This commit is contained in:
parent
72f45b028d
commit
377c07d6b0
@ -1,5 +1,5 @@
|
||||
#include "../userPrefs.h"
|
||||
#include "ButtonThread.h"
|
||||
#include "../userPrefs.h"
|
||||
#include "configuration.h"
|
||||
#if !MESHTASTIC_EXCLUDE_GPS
|
||||
#include "GPS.h"
|
||||
@ -41,7 +41,7 @@ ButtonThread::ButtonThread() : OSThread("Button")
|
||||
}
|
||||
#elif defined(BUTTON_PIN)
|
||||
#if !defined(USERPREFS_BUTTON_PIN)
|
||||
int pin = config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN; // Resolved button pin
|
||||
int pin = config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN; // Resolved button pin
|
||||
#endif
|
||||
#ifdef USERPREFS_BUTTON_PIN
|
||||
int pin = config.device.button_gpio ? config.device.button_gpio : USERPREFS_BUTTON_PIN; // Resolved button pin
|
||||
|
@ -270,7 +270,7 @@ NodeDB::NodeDB()
|
||||
config.position.fixed_position = true;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
saveToDisk(saveWhat);
|
||||
}
|
||||
|
||||
|
16
userPrefs.h
16
userPrefs.h
@ -76,23 +76,23 @@ static unsigned char USERPREFS_ADMIN_KEY[] = {0xcd, 0xc0, 0xb4, 0x3c, 0x53, 0x24
|
||||
*/
|
||||
|
||||
/*
|
||||
* USERPREF_FIXED_GPS_LAT and USERPREF_FIXED_GPS_LON must be set, USERPREF_FIXED_GPS_ALT is optional
|
||||
*
|
||||
* USERPREF_FIXED_GPS_LAT and USERPREF_FIXED_GPS_LON must be set, USERPREF_FIXED_GPS_ALT is optional
|
||||
*
|
||||
* Fixed GPS is Eiffel Tower, Paris, France
|
||||
*/
|
||||
//#define USERPREFS_FIXED_GPS
|
||||
//#define USERPREFS_FIXED_GPS_LAT 48.85873920
|
||||
//#define USERPREFS_FIXED_GPS_LON 2.294508368
|
||||
//#define USERPREFS_FIXED_GPS_ALT 0
|
||||
// #define USERPREFS_FIXED_GPS
|
||||
// #define USERPREFS_FIXED_GPS_LAT 48.85873920
|
||||
// #define USERPREFS_FIXED_GPS_LON 2.294508368
|
||||
// #define USERPREFS_FIXED_GPS_ALT 0
|
||||
|
||||
/*
|
||||
* Set Fixed Bluetooth paring code
|
||||
*/
|
||||
//#define USERPREFS_FIXED_BLUETOOTH 121212
|
||||
// #define USERPREFS_FIXED_BLUETOOTH 121212
|
||||
|
||||
/*
|
||||
* Will overwrite BUTTON_PIN if set
|
||||
*/
|
||||
//#define USERPREFS_BUTTON_PIN 36
|
||||
// #define USERPREFS_BUTTON_PIN 36
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user