Added a proper way to check if it is rdv4 fw

This commit is contained in:
Alejandro 2023-01-24 23:01:28 +01:00
commit 474aaed4b7
No known key found for this signature in database
GPG key ID: CDA13895591AAB58
5 changed files with 16 additions and 4 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();