Skip to content

Commit 7a2fc37

Browse files
author
Seppo Takalo
committed
fixup! Don't enable Device Key, if KVStore is not configured
1 parent f8565a1 commit 7a2fc37

File tree

1 file changed

+6
-5
lines changed
  • features/storage/TESTS/kvstore/direct_access_devicekey_test

1 file changed

+6
-5
lines changed

features/storage/TESTS/kvstore/direct_access_devicekey_test/main.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@
1616
*/
1717

1818
#include "mbed.h"
19+
#include "DeviceKey.h"
20+
21+
#if !defined(COMPONENT_FLASHIAP) || !DEVICEKEY_ENABLED
22+
#error [NOT_SUPPORTED] Target must have internal FlashIAP and Device Key configured for this test
23+
#else
24+
1925
#include <stdio.h>
2026
#include <string.h>
21-
#include "DeviceKey.h"
2227
#include "KVStore.h"
2328
#include "KVMap.h"
2429
#include "kv_config.h"
@@ -31,10 +36,6 @@
3136
#include "utest.h"
3237
#include <stdlib.h>
3338

34-
#if !defined(COMPONENT_FLASHIAP) || !DEVICEKEY_ENABLED
35-
#error [NOT_SUPPORTED] Target must have internal FlashIAP and Device Key configured for this test
36-
#else
37-
3839
using namespace utest::v1;
3940
using namespace mbed;
4041

0 commit comments

Comments
 (0)