mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-31 01:45:45 +00:00
* experiment: enabling forwarding in terminal chat
This commit is contained in:
@@ -196,6 +196,10 @@ protected:
|
||||
return 0; // disable rxdelay
|
||||
}
|
||||
|
||||
bool allowPacketForward(const mesh::Packet* packet) override {
|
||||
return true;
|
||||
}
|
||||
|
||||
void onDiscoveredContact(ContactInfo& contact, bool is_new) override {
|
||||
// TODO: if not in favs, prompt to add as fav(?)
|
||||
|
||||
|
||||
@@ -93,5 +93,5 @@ int ESPNOWRadio::recvRaw(uint8_t* bytes, int sz) {
|
||||
}
|
||||
|
||||
uint32_t ESPNOWRadio::getEstAirtimeFor(int len_bytes) {
|
||||
return 2; // Fast AF
|
||||
return 4; // Fast AF
|
||||
}
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
|
||||
[env:Generic_C3_ESPNOW_terminal_chat]
|
||||
extends = esp32_base
|
||||
board = esp32-c3-devkitm-1
|
||||
;board = esp32-s3-devkitc-1
|
||||
;board = esp32-c3-devkitm-1
|
||||
board = esp32-s3-devkitc-1
|
||||
build_flags =
|
||||
${esp32_base.build_flags}
|
||||
-I variants/espnow_c3
|
||||
-D ARDUINO_USB_MODE=1
|
||||
-D ARDUINO_USB_CDC_ON_BOOT=1
|
||||
-D ESP32_CPU_FREQ=80
|
||||
; -D ARDUINO_USB_MODE=1
|
||||
; -D ARDUINO_USB_CDC_ON_BOOT=1
|
||||
; -D ESP32_CPU_FREQ=80
|
||||
-D MAX_CONTACTS=100
|
||||
-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=35
|
||||
-D PIN_USER_BTN=0
|
||||
|
||||
Reference in New Issue
Block a user