V761 Beeper feature on CH10

This commit is contained in:
pascallanger
2025-01-07 21:37:32 +01:00
parent e05bc7c447
commit 3fdf417ac9
4 changed files with 21 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 4
#define VERSION_PATCH_LEVEL 12
#define VERSION_PATCH_LEVEL 13
#define MODE_SERIAL 0

View File

@@ -118,9 +118,10 @@ static void __attribute__((unused)) V761_send_packet()
packet[5] |= flags;
packet[6] = GET_FLAG(CH7_SW, 0x20) // Flip
|GET_FLAG(CH8_SW, 0x08) // RTH activation
|GET_FLAG(CH9_SW, 0x10); // RTH on/off
packet[6] = GET_FLAG(CH7_SW, 0x20) // Flip
|GET_FLAG(CH8_SW, 0x08) // RTH activation
|GET_FLAG(CH9_SW, 0x10) // RTH on/off
|GET_FLAG(CH10_SW, 0x40); // Beeper on/off
if(sub_protocol == V761_3CH)
packet[6] |= 0x80; // Unknown, set on original V761-1 dump but not on eachine dumps, keeping for compatibility
}