We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17c7250 commit 3c8c82bCopy full SHA for 3c8c82b
hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_types.h
@@ -175,7 +175,12 @@ typedef struct
175
{
176
uint32_t flags; /**< @brief Flags that describe the database attributes. */
177
uint16_t len; /**< @brief Size of the attribute array. */
178
+
179
+#ifdef __ICCARM__ //IAR dosen't support "flexible array member" in c++ compilation
180
+ uint8_t data[1]; /**< @brief Array to hold the database attributes. */
181
+#else
182
uint8_t data[]; /**< @brief Array to hold the database attributes. */
183
+#endif
184
} pm_peer_data_local_gatt_db_t;
185
186
0 commit comments