mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-07 07:10:14 +00:00
Compare commits
7 Commits
e6720d5336
...
ad54a130ed
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ad54a130ed | ||
![]() |
ec59f7d7dd | ||
![]() |
f4c79530ec | ||
![]() |
e9effb9fff | ||
![]() |
cb6dfb66d2 | ||
![]() |
8795a63427 | ||
![]() |
186e509607 |
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -1,5 +1,5 @@
|
|||||||
* text=auto eol=lf
|
* text=auto eol=lf
|
||||||
*.{cmd,[cC][mM][dD]} text eol=crlf
|
*.cmd text eol=crlf
|
||||||
*.{bat,[bB][aA][tT]} text eol=crlf
|
*.bat text eol=crlf
|
||||||
*.{ps1,[pP][sS]} text eol=crlf
|
*.ps1 text eol=crlf
|
||||||
*.{sh,[sS][hH]} text eol=lf
|
*.{sh,[sS][hH]} text eol=lf
|
||||||
|
@ -9,8 +9,8 @@ plugins:
|
|||||||
lint:
|
lint:
|
||||||
enabled:
|
enabled:
|
||||||
- prettier@3.5.3
|
- prettier@3.5.3
|
||||||
- trufflehog@3.88.15
|
- trufflehog@3.88.16
|
||||||
- yamllint@1.35.1
|
- yamllint@1.36.0
|
||||||
- bandit@1.8.3
|
- bandit@1.8.3
|
||||||
- checkov@3.2.382
|
- checkov@3.2.382
|
||||||
- terrascan@1.19.9
|
- terrascan@1.19.9
|
||||||
|
@ -7,13 +7,15 @@
|
|||||||
"core": "esp32",
|
"core": "esp32",
|
||||||
"extra_flags": [
|
"extra_flags": [
|
||||||
"-DARDUINO_ESP32S3_DEV",
|
"-DARDUINO_ESP32S3_DEV",
|
||||||
"-DARDUINO_USB_MODE=1",
|
|
||||||
"-DARDUINO_RUNNING_CORE=1",
|
"-DARDUINO_RUNNING_CORE=1",
|
||||||
"-DARDUINO_EVENT_RUNNING_CORE=1"
|
"-DARDUINO_EVENT_RUNNING_CORE=1",
|
||||||
|
"-DARDUINO_USB_CDC_ON_BOOT=1",
|
||||||
|
"-DBOARD_HAS_PSRAM"
|
||||||
],
|
],
|
||||||
"f_cpu": "240000000L",
|
"f_cpu": "240000000L",
|
||||||
"f_flash": "80000000L",
|
"f_flash": "80000000L",
|
||||||
"flash_mode": "qio",
|
"flash_mode": "qio",
|
||||||
|
"psram_type": "qio",
|
||||||
"hwids": [["0x303A", "0x1001"]],
|
"hwids": [["0x303A", "0x1001"]],
|
||||||
"mcu": "esp32s3",
|
"mcu": "esp32s3",
|
||||||
"variant": "esp32s3"
|
"variant": "esp32s3"
|
||||||
|
@ -89,18 +89,20 @@ bool PacketAPI::receivePacket(void)
|
|||||||
|
|
||||||
bool PacketAPI::sendPacket(void)
|
bool PacketAPI::sendPacket(void)
|
||||||
{
|
{
|
||||||
// fill dummy buffer; we don't use it, we directly send the fromRadio structure
|
if (server->available()) {
|
||||||
uint32_t len = getFromRadio(txBuf);
|
// fill dummy buffer; we don't use it, we directly send the fromRadio structure
|
||||||
if (len != 0) {
|
uint32_t len = getFromRadio(txBuf);
|
||||||
static uint32_t id = 0;
|
if (len != 0) {
|
||||||
fromRadioScratch.id = ++id;
|
static uint32_t id = 0;
|
||||||
bool result = server->sendPacket(DataPacket<meshtastic_FromRadio>(id, fromRadioScratch));
|
fromRadioScratch.id = ++id;
|
||||||
if (!result) {
|
bool result = server->sendPacket(DataPacket<meshtastic_FromRadio>(id, fromRadioScratch));
|
||||||
LOG_ERROR("send queue full");
|
if (!result) {
|
||||||
|
LOG_ERROR("send queue full");
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
return result;
|
}
|
||||||
} else
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PacketAPI::notifyProgrammingMode(void)
|
bool PacketAPI::notifyProgrammingMode(void)
|
||||||
|
@ -12,4 +12,4 @@ lib_deps =
|
|||||||
${nrf52840_base.lib_deps}
|
${nrf52840_base.lib_deps}
|
||||||
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
||||||
upload_protocol = nrfutil
|
upload_protocol = nrfutil
|
||||||
upload_port = /dev/ttyACM1
|
;upload_port = /dev/ttyACM1
|
||||||
|
@ -16,4 +16,4 @@ lib_deps =
|
|||||||
zinggjm/GxEPD2@^1.6.2
|
zinggjm/GxEPD2@^1.6.2
|
||||||
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
||||||
upload_protocol = nrfutil
|
upload_protocol = nrfutil
|
||||||
upload_port = /dev/ttyACM1
|
;upload_port = /dev/ttyACM1
|
||||||
|
@ -12,4 +12,4 @@ lib_deps =
|
|||||||
${nrf52840_base.lib_deps}
|
${nrf52840_base.lib_deps}
|
||||||
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
; If not set we will default to uploading over serial (first it forces bootloader entry by talking 1200bps to cdcacm)
|
||||||
upload_protocol = nrfutil
|
upload_protocol = nrfutil
|
||||||
upload_port = /dev/ttyACM1
|
;upload_port = /dev/ttyACM1
|
||||||
|
@ -6,7 +6,7 @@ board_build.psram_type = opi
|
|||||||
board_upload.flash_size = 8MB
|
board_upload.flash_size = 8MB
|
||||||
board_upload.maximum_size = 8388608
|
board_upload.maximum_size = 8388608
|
||||||
board = esp32-s3-devkitc-1
|
board = esp32-s3-devkitc-1
|
||||||
upload_port = /dev/ttyUSB0
|
;upload_port = /dev/ttyUSB0
|
||||||
board_level = extra
|
board_level = extra
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
build_flags =
|
build_flags =
|
||||||
@ -33,7 +33,7 @@ board_build.psram_type = opi
|
|||||||
board_upload.flash_size = 8MB
|
board_upload.flash_size = 8MB
|
||||||
board_upload.maximum_size = 8388608
|
board_upload.maximum_size = 8388608
|
||||||
board = esp32-s3-devkitc-1
|
board = esp32-s3-devkitc-1
|
||||||
upload_port = /dev/ttyUSB0
|
;upload_port = /dev/ttyUSB0
|
||||||
board_level = extra
|
board_level = extra
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
build_flags =
|
build_flags =
|
||||||
@ -60,7 +60,7 @@ board_build.psram_type = opi
|
|||||||
board_upload.flash_size = 8MB
|
board_upload.flash_size = 8MB
|
||||||
board_upload.maximum_size = 8388608
|
board_upload.maximum_size = 8388608
|
||||||
board = esp32-s3-devkitc-1
|
board = esp32-s3-devkitc-1
|
||||||
upload_port = /dev/ttyUSB0
|
;upload_port = /dev/ttyUSB0
|
||||||
board_level = extra
|
board_level = extra
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
build_flags =
|
build_flags =
|
||||||
|
Loading…
Reference in New Issue
Block a user