kopia lustrzana https://github.com/Max-Plastix/tbeam-helium-mapper
Update version to 1.5.7
rodzic
9f9af97941
commit
ba46261eab
|
@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define BATTERY_LOW_VOLTAGE 3.4 // Below this voltage, power off until USB power allows charging
|
||||
|
||||
#define LORAWAN_PORT 2 // FPort for Uplink messages -- must match Helium Console Decoder script!
|
||||
#define LORAWAN_CONFIRMED_EVERY 2 // Send confirmed message for ACK every N messages (0 means never, 1 means always, 2 every-other-one..)
|
||||
#define LORAWAN_CONFIRMED_EVERY 0 // Send confirmed message for ACK every N messages (0 means never, 1 means always, 2 every-other-one..)
|
||||
#define LORAWAN_SF DR_SF7 // Spreading factor (recommended DR_SF7 for network map purposes, DR_SF10 is slower/more-reach)
|
||||
|
||||
// Uncomment to enable discarding network settings by long pressing second button
|
||||
|
@ -52,7 +52,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// -----------------------------------------------------------------------------
|
||||
|
||||
#define APP_NAME "Helium TTGO"
|
||||
#define APP_VERSION "1.5.6 MaxP"
|
||||
#define APP_VERSION "1.5.7 MaxP"
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Less common Configuration iteams
|
||||
|
|
|
@ -208,7 +208,7 @@ bool trySend()
|
|||
bool confirmed = (LORAWAN_CONFIRMED_EVERY > 0) && (ttn_get_count() % LORAWAN_CONFIRMED_EVERY == 0);
|
||||
if (confirmed) {
|
||||
Serial.println("ACK requested");
|
||||
screen_print("?\a");
|
||||
screen_print("? ");
|
||||
digitalWrite(RED_LED, LOW); // Light LED
|
||||
ack_req++;
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ void lora_msg_callback(uint8_t message)
|
|||
}
|
||||
|
||||
if (EV_TXSTART == message) {
|
||||
screen_print("+\a");
|
||||
screen_print("+ ");
|
||||
screen_update();
|
||||
}
|
||||
// We only want to say 'packetSent' for our packets (not packets needed for joining)
|
||||
|
@ -312,7 +312,7 @@ void lora_msg_callback(uint8_t message)
|
|||
digitalWrite(RED_LED, HIGH);
|
||||
ack_rx++;
|
||||
Serial.printf("ACK! %lu / %lu\n", ack_rx, ack_req);
|
||||
screen_print("!\a");
|
||||
screen_print("! ");
|
||||
}
|
||||
|
||||
if (EV_RXCOMPLETE == message || EV_RESPONSE == message) {
|
||||
|
|
Ładowanie…
Reference in New Issue