gcc error when const is used

Change to #define to be compatible with gcc.

Change-Id: Id2a2b3dbeaaf7aea9b0e2075320c30f8bad50fc7
This commit is contained in:
Bill(Shuzhou) Liu
2022-12-05 16:26:12 -06:00
parent 9c4ce805cf
commit 73d8b35610
+1 -1
View File
@@ -431,7 +431,7 @@ typedef enum {
/**
* @brief The maximum test cases to run
*/
const uint32_t MAX_TEST_CASES = RDC_DIAG_TEST_LAST - RDC_DIAG_TEST_FIRST + 1;
#define MAX_TEST_CASES (RDC_DIAG_TEST_LAST - RDC_DIAG_TEST_FIRST + 1)
/**
* @brief The maximum length of the diagnostic messages