From 0dc6e58b86f839b528ebe3bc37c9d37f4ac6da18 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Sat, 20 Aug 2022 13:39:58 +0200 Subject: [PATCH] Add HASP_RANDOM macro --- src/custom/my_custom_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom/my_custom_template.cpp b/src/custom/my_custom_template.cpp index 8c4917f4..c6cd66ac 100644 --- a/src/custom/my_custom_template.cpp +++ b/src/custom/my_custom_template.cpp @@ -46,7 +46,7 @@ void custom_get_sensors(JsonDocument& doc) JsonObject sensor = doc.createNestedObject(F("Custom")); /* Key-Value pair of the sensor value */ - sensor[F("Random")] = random(256); + sensor[F("Random")] = HASP_RANDOM(256); } void custom_topic_payload(const char* topic, const char* payload, uint8_t source){