From c5c8c92755a78ac9a68045f640d6bb33e9e783ec Mon Sep 17 00:00:00 2001 From: tekka007 Date: Sat, 6 Aug 2016 00:14:19 +0200 Subject: [PATCH] Verify MY_PARENT_NODE_ID if parent is set static --- MySensors.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MySensors.h b/MySensors.h index 8b589a8..a52d1be 100644 --- a/MySensors.h +++ b/MySensors.h @@ -286,6 +286,10 @@ #endif #endif +#if defined(MY_PARENT_NODE_IS_STATIC) && (MY_PARENT_NODE_ID == AUTO) + #error Parent is static but no parent ID defined. +#endif + // Make sure to disable child features when parent feature is disabled #if !defined(MY_RADIO_FEATURE) #undef MY_OTA_FIRMWARE_FEATURE