mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Merge pull request #1452 from martinbudden/bf_fc_name
Added and used FC_FIRMWARE_NAME #define
This commit is contained in:
commit
32a3f8912c
4 changed files with 6 additions and 3 deletions
|
@ -1169,7 +1169,7 @@ static bool blackboxWriteSysinfo()
|
|||
|
||||
switch (xmitState.headerIndex) {
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware type:%s", "Cleanflight");
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware revision:Betaflight %s (%s) %s", FC_VERSION_STRING, shortGitRevision, targetName);
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware revision:%s %s (%s) %s", FC_FIRMWARE_NAME, FC_VERSION_STRING, shortGitRevision, targetName);
|
||||
BLACKBOX_PRINT_HEADER_LINE("Firmware date:%s %s", buildDate, buildTime);
|
||||
BLACKBOX_PRINT_HEADER_LINE("Craft name:%s", masterConfig.name);
|
||||
BLACKBOX_PRINT_HEADER_LINE("P interval:%d/%d", masterConfig.blackbox_rate_num, masterConfig.blackbox_rate_denom);
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define FC_FIRMWARE_NAME "Betaflight"
|
||||
#define FC_VERSION_MAJOR 3 // increment when a major release is made (big new feature, etc)
|
||||
#define FC_VERSION_MINOR 1 // increment when a minor release is made (small new feature, change etc)
|
||||
#define FC_VERSION_PATCH_LEVEL 0 // increment when a bug is fixed
|
||||
|
|
|
@ -3613,7 +3613,8 @@ static void cliVersion(char *cmdline)
|
|||
{
|
||||
UNUSED(cmdline);
|
||||
|
||||
cliPrintf("# BetaFlight/%s %s %s / %s (%s)\r\n",
|
||||
cliPrintf("# %s/%s %s %s / %s (%s)\r\n",
|
||||
FC_FIRMWARE_NAME,
|
||||
targetName,
|
||||
FC_VERSION_STRING,
|
||||
buildDate,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "usbd_conf.h"
|
||||
#include "usb_regs.h"
|
||||
#include "platform.h"
|
||||
#include "build/version.h"
|
||||
|
||||
/** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
|
||||
* @{
|
||||
|
@ -57,7 +58,7 @@
|
|||
* @{
|
||||
*/
|
||||
#define USBD_LANGID_STRING 0x409
|
||||
#define USBD_MANUFACTURER_STRING "BetaFlight"
|
||||
#define USBD_MANUFACTURER_STRING FC_FIRMWARE_NAME
|
||||
|
||||
#ifdef USBD_PRODUCT_STRING
|
||||
#define USBD_PRODUCT_HS_STRING USBD_PRODUCT_STRING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue