Compare commits

..

No commits in common. "b0a5a26f5839cfaaf45944f4a96eb1fb4dca20d3" and "bd3755bb336f7100c4c249271d0077d621cdf3f0" have entirely different histories.

13 changed files with 11 additions and 31 deletions

View File

@ -7,8 +7,6 @@ on:
required: true required: true
type: string type: string
permissions: read-all
jobs: jobs:
build-esp32: build-esp32:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,7 +24,6 @@ jobs:
./arch/esp32/esp32s2.ini ./arch/esp32/esp32s2.ini
./arch/esp32/esp32s3.ini ./arch/esp32/esp32s3.ini
./arch/esp32/esp32c3.ini ./arch/esp32/esp32c3.ini
./arch/esp32/esp32c6.ini
build-script-path: bin/build-esp32.sh build-script-path: bin/build-esp32.sh
ota-firmware-source: firmware.bin ota-firmware-source: firmware.bin
ota-firmware-target: release/bleota.bin ota-firmware-target: release/bleota.bin

View File

@ -26,12 +26,10 @@ jobs:
./arch/esp32/esp32s2.ini ./arch/esp32/esp32s2.ini
./arch/esp32/esp32s3.ini ./arch/esp32/esp32s3.ini
./arch/esp32/esp32c3.ini ./arch/esp32/esp32c3.ini
./arch/esp32/esp32c6.ini
build-script-path: bin/build-esp32.sh build-script-path: bin/build-esp32.sh
ota-firmware-source: firmware-c3.bin ota-firmware-source: firmware-c3.bin
ota-firmware-target: release/bleota-c3.bin ota-firmware-target: release/bleota-c3.bin
artifact-paths: | artifact-paths: |
release/*.bin release/*.bin
release/*.elf release/*.elf
include-web-ui: true
arch: esp32c3 arch: esp32c3

View File

@ -33,5 +33,4 @@ jobs:
artifact-paths: | artifact-paths: |
release/*.bin release/*.bin
release/*.elf release/*.elf
include-web-ui: true
arch: esp32c6 arch: esp32c6

View File

@ -7,8 +7,6 @@ on:
required: true required: true
type: string type: string
permissions: read-all
jobs: jobs:
build-esp32-s3: build-esp32-s3:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -26,7 +24,6 @@ jobs:
./arch/esp32/esp32s2.ini ./arch/esp32/esp32s2.ini
./arch/esp32/esp32s3.ini ./arch/esp32/esp32s3.ini
./arch/esp32/esp32c3.ini ./arch/esp32/esp32c3.ini
./arch/esp32/esp32c6.ini
build-script-path: bin/build-esp32.sh build-script-path: bin/build-esp32.sh
ota-firmware-source: firmware-s3.bin ota-firmware-source: firmware-s3.bin
ota-firmware-target: release/bleota-s3.bin ota-firmware-target: release/bleota-s3.bin

View File

@ -32,7 +32,6 @@ build_flags =
-Isrc/platform/portduino -Isrc/platform/portduino
-DRADIOLIB_EEPROM_UNSUPPORTED -DRADIOLIB_EEPROM_UNSUPPORTED
-DPORTDUINO_LINUX_HARDWARE -DPORTDUINO_LINUX_HARDWARE
-lstdc++fs
-lbluetooth -lbluetooth
-lgpiod -lgpiod
-lyaml-cpp -lyaml-cpp

@ -1 +1 @@
Subproject commit 034a18143632d4cf17e0acfff66915646f217c27 Subproject commit 06cf134e2b3d035c3ca6cbbb90b4c017d4715398

View File

@ -153,9 +153,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// ACCELEROMETER // ACCELEROMETER
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#define MPU6050_ADDR 0x68 #define MPU6050_ADDR 0x68
#define STK8BXX_ADDR 0x18 #define STK8BXX_ADR 0x18
#define LIS3DH_ADDR 0x18 #define LIS3DH_ADR 0x18
#define LIS3DH_ADDR_ALT 0x19
#define BMA423_ADDR 0x19 #define BMA423_ADDR 0x19
#define LSM6DS3_ADDR 0x6A #define LSM6DS3_ADDR 0x6A
#define BMX160_ADDR 0x69 #define BMX160_ADDR 0x69

View File

@ -409,17 +409,7 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
#else #else
SCAN_SIMPLE_CASE(PMSA0031_ADDR, PMSA0031, "PMSA0031 air quality sensor found") SCAN_SIMPLE_CASE(PMSA0031_ADDR, PMSA0031, "PMSA0031 air quality sensor found")
#endif #endif
case BMA423_ADDR: // this can also be LIS3DH_ADDR_ALT SCAN_SIMPLE_CASE(BMA423_ADDR, BMA423, "BMA423 accelerometer found");
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x0F), 2);
if (registerValue == 0x3300 || registerValue == 0x3333) { // RAK4631 WisBlock has LIS3DH register at 0x3333
type = LIS3DH;
LOG_INFO("LIS3DH accelerometer found");
} else {
type = BMA423;
LOG_INFO("BMA423 accelerometer found");
}
break;
SCAN_SIMPLE_CASE(LSM6DS3_ADDR, LSM6DS3, "LSM6DS3 accelerometer found at address 0x%x", (uint8_t)addr.address); SCAN_SIMPLE_CASE(LSM6DS3_ADDR, LSM6DS3, "LSM6DS3 accelerometer found at address 0x%x", (uint8_t)addr.address);
SCAN_SIMPLE_CASE(TCA9535_ADDR, TCA9535, "TCA9535 I2C expander found"); SCAN_SIMPLE_CASE(TCA9535_ADDR, TCA9535, "TCA9535 I2C expander found");
SCAN_SIMPLE_CASE(TCA9555_ADDR, TCA9555, "TCA9555 I2C expander found"); SCAN_SIMPLE_CASE(TCA9555_ADDR, TCA9555, "TCA9555 I2C expander found");

View File

@ -3,7 +3,6 @@
#include "PhoneAPI.h" #include "PhoneAPI.h"
#include "Stream.h" #include "Stream.h"
#include "concurrency/OSThread.h" #include "concurrency/OSThread.h"
#include <cstdarg>
// A To/FromRadio packet + our 32 bit header // A To/FromRadio packet + our 32 bit header
#define MAX_STREAM_BUF_SIZE (MAX_TO_FROM_RADIO_SIZE + sizeof(uint32_t)) #define MAX_STREAM_BUF_SIZE (MAX_TO_FROM_RADIO_SIZE + sizeof(uint32_t))

View File

@ -81,7 +81,7 @@ typedef struct _meshtastic_NodeInfoLite {
uint8_t channel; uint8_t channel;
/* True if we witnessed the node over MQTT instead of LoRA transport */ /* True if we witnessed the node over MQTT instead of LoRA transport */
bool via_mqtt; bool via_mqtt;
/* Number of hops away from us this node is (0 if direct neighbor) */ /* Number of hops away from us this node is (0 if adjacent) */
bool has_hops_away; bool has_hops_away;
uint8_t hops_away; uint8_t hops_away;
/* True if node is in our favorites list /* True if node is in our favorites list

View File

@ -720,7 +720,7 @@ typedef struct _meshtastic_MeshPacket {
Set during reception to indicate the SNR of this packet. Set during reception to indicate the SNR of this packet.
Used to collect statistics on current link quality. */ Used to collect statistics on current link quality. */
float rx_snr; float rx_snr;
/* If unset treated as zero (no forwarding, send to direct neighbor nodes only) /* If unset treated as zero (no forwarding, send to adjacent nodes only)
if 1, allow hopping through one node, etc... if 1, allow hopping through one node, etc...
For our usecase real world topologies probably have a max of about 3. For our usecase real world topologies probably have a max of about 3.
This field is normally placed into a few of bits in the header. */ This field is normally placed into a few of bits in the header. */
@ -791,7 +791,7 @@ typedef struct _meshtastic_NodeInfo {
uint8_t channel; uint8_t channel;
/* True if we witnessed the node over MQTT instead of LoRA transport */ /* True if we witnessed the node over MQTT instead of LoRA transport */
bool via_mqtt; bool via_mqtt;
/* Number of hops away from us this node is (0 if direct neighbor) */ /* Number of hops away from us this node is (0 if adjacent) */
bool has_hops_away; bool has_hops_away;
uint8_t hops_away; uint8_t hops_away;
/* True if node is in our favorites list /* True if node is in our favorites list

View File

@ -16,7 +16,10 @@
#include "meshtastic/atak.pb.h" #include "meshtastic/atak.pb.h"
#include "sleep.h" #include "sleep.h"
#include "target_specific.h" #include "target_specific.h"
extern "C" {
#include <Throttle.h> #include <Throttle.h>
}
PositionModule *positionModule; PositionModule *positionModule;

View File

@ -2,8 +2,7 @@
extends = portduino_base extends = portduino_base
; The pkg-config commands below optionally add link flags. ; The pkg-config commands below optionally add link flags.
; the || : is just a "or run the null command" to avoid returning an error code ; the || : is just a "or run the null command" to avoid returning an error code
build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino build_flags = ${portduino_base.build_flags} -O0 -I variants/portduino -I /usr/include
-I /usr/include
!pkg-config --libs libulfius --silence-errors || : !pkg-config --libs libulfius --silence-errors || :
!pkg-config --libs openssl --silence-errors || : !pkg-config --libs openssl --silence-errors || :
board = cross_platform board = cross_platform