Merge pull request #1885 from Alejandro12120/pm3generic-flash

Add a proper way to check if a FW is RDV4
This commit is contained in:
Iceman 2023-01-29 04:29:03 +01:00 committed by GitHub
commit da8adace6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 2 deletions

View file

@ -453,6 +453,12 @@ static void SendCapabilities(void) {
capabilities.baudrate = g_usart_baudrate;
#endif
#ifdef RDV4
capabilities.is_rdv4 = true;
#else
capabilities.is_rdv4 = false;
#endif
#ifdef WITH_FLASH
capabilities.compiled_with_flash = true;
capabilities.hw_available_flash = FlashInit();