Skip to content

Commit 9fb997a

Browse files
committed
Add version check for RoT generation
1 parent 0154880 commit 9fb997a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ int main(void)
166166
return -1;
167167
}
168168

169+
#if MBED_MAJOR_VERSION > 5
169170
// Initialize root of trust
170171
DeviceKey &devkey = DeviceKey::get_instance();
171172
devkey.generate_root_of_trust();
173+
#endif
172174

173175
// Connect with NetworkInterface
174176
printf("Connect to network\n");

0 commit comments

Comments
 (0)