From bf41bb3164084fed4988ef043ddcc3c30a97ce5a Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Wed, 4 Apr 2018 15:21:05 +0100 Subject: [PATCH] BLE: Export byte_array_t size exploitable at compile time. --- features/FEATURE_BLE/ble/BLETypes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/features/FEATURE_BLE/ble/BLETypes.h b/features/FEATURE_BLE/ble/BLETypes.h index dbeadfe316..5dba99796c 100644 --- a/features/FEATURE_BLE/ble/BLETypes.h +++ b/features/FEATURE_BLE/ble/BLETypes.h @@ -263,6 +263,11 @@ private: template struct byte_array_t { + /** + * Size of the array; accessible at compile time. + */ + static const size_t size_ = array_size; + /** * Default to all zeroes */