mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 07:21:36 +08:00
HW Rev & Ver:0 for no value, -1 for not supported
This commit is contained in:
committed by
Daniel Agar
parent
13c4a6cced
commit
7ae999ecb3
@@ -49,8 +49,8 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
static int hw_version = -1;
|
static int hw_version = 0;
|
||||||
static int hw_revision = -1;
|
static int hw_revision = 0;
|
||||||
static char hw_info[] = HW_INFO_INIT;
|
static char hw_info[] = HW_INFO_INIT;
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -276,8 +276,8 @@ __EXPORT const char *board_get_hw_type_name()
|
|||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* An integer value of this boards hardware version.
|
* An integer value of this boards hardware version.
|
||||||
* A value of 0 is the default for boards not supporting the BOARD_HAS_VERSIONING API.
|
* A value of -1 is the default for boards not supporting the BOARD_HAS_VERSIONING API.
|
||||||
* A value of -1 is the default for boards supporting the API but not having version.
|
* A value of 0 is the default for boards supporting the API but not having version.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
@@ -297,8 +297,8 @@ __EXPORT int board_get_hw_version()
|
|||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* An integer value of this boards hardware revision.
|
* An integer value of this boards hardware revision.
|
||||||
* A value of 0 is the default for boards not supporting the BOARD_HAS_VERSIONING API.
|
* A value of -1 is the default for boards not supporting the BOARD_HAS_VERSIONING API.
|
||||||
* A value of -1 is the default for boards supporting the API but not having revision.
|
* A value of 0 is the default for boards supporting the API but not having revision.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user