Add message to static_assert, fix formatting

This commit is contained in:
Luke Wren 2021-01-27 15:08:51 +00:00 committed by Graham Sanderson
parent a33e620424
commit 82e7d02bd2
2 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@ typedef struct {
/*! \brief Get unique ID /*! \brief Get unique ID
* \ingroup unique_id * \ingroup unique_id
* *
* Get the unique 64-bit device identifier which was retrieved from the * Get the unique 64-bit device identifier which was retrieved from the
* external NOR flash device at boot. * external NOR flash device at boot.
* *

View File

@ -7,7 +7,7 @@
#include "hardware/flash.h" #include "hardware/flash.h"
#include "pico/unique_id.h" #include "pico/unique_id.h"
static_assert(PICO_UNIQUE_BOARD_ID_SIZE_BYTES == FLASH_UNIQUE_ID_SIZE_BYTES); static_assert(PICO_UNIQUE_BOARD_ID_SIZE_BYTES == FLASH_UNIQUE_ID_SIZE_BYTES, "Board ID size must match flash ID");
static pico_unique_board_id_t retrieved_id; static pico_unique_board_id_t retrieved_id;