mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
Compare commits
No commits in common. "2e44de262e2be2fcdb8a11044a47099dc8799ba4" and "8aac9f2e8ec14c95c90c975c4d36aacda99aa591" have entirely different histories.
2e44de262e
...
8aac9f2e8e
@ -35,11 +35,7 @@ template <typename T, std::size_t N> std::size_t array_count(const T (&)[N])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) || defined(ARCH_ESP32) || defined(ARCH_PORTDUINO)
|
#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) || defined(ARCH_ESP32) || defined(ARCH_PORTDUINO)
|
||||||
#if defined(RAK2560)
|
|
||||||
HardwareSerial *GPS::_serial_gps = &Serial2;
|
|
||||||
#else
|
|
||||||
HardwareSerial *GPS::_serial_gps = &Serial1;
|
HardwareSerial *GPS::_serial_gps = &Serial1;
|
||||||
#endif
|
|
||||||
#elif defined(ARCH_RP2040)
|
#elif defined(ARCH_RP2040)
|
||||||
SerialUART *GPS::_serial_gps = &Serial1;
|
SerialUART *GPS::_serial_gps = &Serial1;
|
||||||
#else
|
#else
|
||||||
|
@ -131,6 +131,7 @@ void AtakPluginModule::alterReceivedProtobuf(meshtastic_MeshPacket &mp, meshtast
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Decompress for Phone (EUD)
|
// Decompress for Phone (EUD)
|
||||||
|
auto decompressedCopy = packetPool.allocCopy(mp);
|
||||||
auto uncompressed = cloneTAKPacketData(t);
|
auto uncompressed = cloneTAKPacketData(t);
|
||||||
uncompressed.is_compressed = false;
|
uncompressed.is_compressed = false;
|
||||||
if (t->has_contact) {
|
if (t->has_contact) {
|
||||||
@ -187,7 +188,6 @@ void AtakPluginModule::alterReceivedProtobuf(meshtastic_MeshPacket &mp, meshtast
|
|||||||
LOG_DEBUG("Decompressed chat to_callsign: %d bytes", length);
|
LOG_DEBUG("Decompressed chat to_callsign: %d bytes", length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto decompressedCopy = packetPool.allocCopy(mp);
|
|
||||||
decompressedCopy->decoded.payload.size =
|
decompressedCopy->decoded.payload.size =
|
||||||
pb_encode_to_bytes(decompressedCopy->decoded.payload.bytes, sizeof(decompressedCopy->decoded.payload),
|
pb_encode_to_bytes(decompressedCopy->decoded.payload.bytes, sizeof(decompressedCopy->decoded.payload),
|
||||||
meshtastic_TAKPacket_fields, &uncompressed);
|
meshtastic_TAKPacket_fields, &uncompressed);
|
||||||
|
@ -6,6 +6,7 @@ board_check = true
|
|||||||
build_flags = ${nrf52840_base.build_flags} -Ivariants/rak2560 -D RAK_4631
|
build_flags = ${nrf52840_base.build_flags} -Ivariants/rak2560 -D RAK_4631
|
||||||
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m4/fpv4-sp-d16-hard"
|
-L "${platformio.libdeps_dir}/${this.__env__}/bsec2/src/cortex-m4/fpv4-sp-d16-hard"
|
||||||
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
|
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
|
||||||
|
-DMESHTASTIC_EXCLUDE_GPS=1
|
||||||
-DHAS_RAKPROT=1 ; Define if RAk OneWireSerial is used (disables GPS)
|
-DHAS_RAKPROT=1 ; Define if RAk OneWireSerial is used (disables GPS)
|
||||||
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak2560> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
build_src_filter = ${nrf52_base.build_src_filter} +<../variants/rak2560> +<mesh/eth/> +<mesh/api/> +<mqtt/>
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
Loading…
Reference in New Issue
Block a user