* experiment: enabling forwarding in terminal chat

This commit is contained in:
Scott Powell
2025-03-26 03:57:36 +11:00
parent d32e641225
commit 321a9425da
3 changed files with 11 additions and 7 deletions

View File

@@ -196,6 +196,10 @@ protected:
return 0; // disable rxdelay return 0; // disable rxdelay
} }
bool allowPacketForward(const mesh::Packet* packet) override {
return true;
}
void onDiscoveredContact(ContactInfo& contact, bool is_new) override { void onDiscoveredContact(ContactInfo& contact, bool is_new) override {
// TODO: if not in favs, prompt to add as fav(?) // TODO: if not in favs, prompt to add as fav(?)

View File

@@ -93,5 +93,5 @@ int ESPNOWRadio::recvRaw(uint8_t* bytes, int sz) {
} }
uint32_t ESPNOWRadio::getEstAirtimeFor(int len_bytes) { uint32_t ESPNOWRadio::getEstAirtimeFor(int len_bytes) {
return 2; // Fast AF return 4; // Fast AF
} }

View File

@@ -3,17 +3,17 @@
[env:Generic_C3_ESPNOW_terminal_chat] [env:Generic_C3_ESPNOW_terminal_chat]
extends = esp32_base extends = esp32_base
board = esp32-c3-devkitm-1 ;board = esp32-c3-devkitm-1
;board = esp32-s3-devkitc-1 board = esp32-s3-devkitc-1
build_flags = build_flags =
${esp32_base.build_flags} ${esp32_base.build_flags}
-I variants/espnow_c3 -I variants/espnow_c3
-D ARDUINO_USB_MODE=1 ; -D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1 ; -D ARDUINO_USB_CDC_ON_BOOT=1
-D ESP32_CPU_FREQ=80 ; -D ESP32_CPU_FREQ=80
-D MAX_CONTACTS=100 -D MAX_CONTACTS=100
-D MAX_GROUP_CHANNELS=1 -D MAX_GROUP_CHANNELS=1
-D ESPNOW_DEBUG_LOGGING=1 ; -D ESPNOW_DEBUG_LOGGING=1
; -D P_LORA_TX_LED=8 ; -D P_LORA_TX_LED=8
-D P_LORA_TX_LED=35 -D P_LORA_TX_LED=35
-D PIN_USER_BTN=0 -D PIN_USER_BTN=0