thingspark example

Dependencies:   MbedJSONValue mbed-http HTS221

Revision:
2:4b4ac59ff9b0
Parent:
0:85fdc69bc10c
Child:
4:27fd8efb5bab
diff -r 3bff14db67c7 -r 4b4ac59ff9b0 mbedtls_entropy_config.h
--- a/mbedtls_entropy_config.h	Thu Feb 16 11:13:40 2017 +0100
+++ b/mbedtls_entropy_config.h	Thu Feb 16 11:48:57 2017 +0100
@@ -19,8 +19,6 @@
 
 #include "select-demo.h"
 
-#if DEMO == DEMO_HTTPS
-
 /* Enable entropy for K64F and K22F. This means entropy is disabled for all other targets. */
 /* Do **NOT** deploy this code in production on other targets! */
 /* See https://tls.mbed.org/kb/how-to/add-entropy-sources-to-entropy-pool */
@@ -29,6 +27,8 @@
 #undef MBEDTLS_TEST_NULL_ENTROPY
 #endif
 
+#if DEMO == DEMO_HTTPS
+
 #if !defined(MBEDTLS_ENTROPY_HARDWARE_ALT) && \
     !defined(MBEDTLS_ENTROPY_NV_SEED) && !defined(MBEDTLS_TEST_NULL_ENTROPY)
 #error "This hardware does not have an entropy source."