From 1fd82cb334db6683474a551a3e9e4bfcae74f5df Mon Sep 17 00:00:00 2001 From: p-i-engineer Date: Sat, 30 May 2026 06:38:58 -0700 Subject: [PATCH 1/2] dshot ignore fix --- src/main/io/beeper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/io/beeper.c b/src/main/io/beeper.c index af0f826c88c..c8cc7769921 100644 --- a/src/main/io/beeper.c +++ b/src/main/io/beeper.c @@ -345,7 +345,9 @@ void beeperUpdate(timeUs_t currentTimeUs) if (!beeperIsOn) { #ifdef USE_DSHOT if (isMotorProtocolDshot() && !areMotorsRunning() && beeperConfig()->dshot_beeper_enabled - && currentTimeUs - lastDshotBeeperCommandTimeUs > getDShotBeaconGuardDelayUs()) + && currentTimeUs - lastDshotBeeperCommandTimeUs > getDShotBeaconGuardDelayUs() + && currentBeeperEntry->sequence[beeperPos] != 0 // added beeper timeout so dshot does not beep on "off" + && !(getBeeperOffMask() & (1 << (currentBeeperEntry->mode - 1)))) // added beeper ignore to dshot beacon { lastDshotBeeperCommandTimeUs = currentTimeUs; sendDShotCommand(beeperConfig()->dshot_beeper_tone); From c0ba786e11861ad97d0392429a1327c8cacd68fd Mon Sep 17 00:00:00 2001 From: dtrbinh Date: Tue, 9 Jun 2026 22:45:59 +0700 Subject: [PATCH 2/2] target/JHEMCUF435: fix UART7 ESC telemetry defaults --- src/main/target/JHEMCUF435/config.c | 35 +++++++++++++++++++++++++++++ src/main/target/JHEMCUF435/target.h | 4 ++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 src/main/target/JHEMCUF435/config.c diff --git a/src/main/target/JHEMCUF435/config.c b/src/main/target/JHEMCUF435/config.c new file mode 100644 index 00000000000..bb6078293ed --- /dev/null +++ b/src/main/target/JHEMCUF435/config.c @@ -0,0 +1,35 @@ +/* + * This file is part of INAV Project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. + * + * Alternatively, the contents of this file may be used under the terms + * of the GNU General Public License Version 3, as described below: + * + * This file is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. + * + * This file is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see http://www.gnu.org/licenses/. + */ + +#include + +#include "platform.h" + +#include "io/serial.h" + +void targetConfiguration(void) +{ + serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART2)].functionMask = FUNCTION_RX_SERIAL; + serialConfigMutable()->portConfigs[findSerialPortIndexByIdentifier(SERIAL_PORT_USART7)].functionMask = FUNCTION_ESCSERIAL; +} \ No newline at end of file diff --git a/src/main/target/JHEMCUF435/target.h b/src/main/target/JHEMCUF435/target.h index edbc3d0bbda..e061f67cd76 100644 --- a/src/main/target/JHEMCUF435/target.h +++ b/src/main/target/JHEMCUF435/target.h @@ -137,7 +137,7 @@ #define UART6_TX_PIN PC6 #define USE_UART7 -//#define USE_UART7_PIN_SWAP +#define USE_UART7_PIN_SWAP #define UART7_RX_PIN PC0 #define UART7_TX_PIN PC1 @@ -149,7 +149,7 @@ #define DEFAULT_RX_TYPE RX_TYPE_SERIAL #define SERIALRX_PROVIDER SERIALRX_CRSF -#define SERIALRX_UART SERIAL_PORT_USART5 +#define SERIALRX_UART SERIAL_PORT_USART2 // *************** ADC ***************************** #define USE_ADC