From f7014ff154895e4d4839e9bf3999d49874f0c8c0 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Sun, 20 Feb 2022 11:57:36 -0600 Subject: [PATCH] Update Reference.md --- docs/Reference.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/Reference.md b/docs/Reference.md index 73e0f57..7762734 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -329,10 +329,11 @@ To create more than one user-defined command, simply create multiple instances o ### *#define REQUIRED VERSION(major,minor,patch)* -If REQUIRED is defined in the main sketch prior to including the HomeSpan library with `#include "HomeSpan.h"`, HomeSpan will throw a compile-time error unless the version of the library included is equal to, or later than, the version specified using the VERSION macro. Example: +If REQUIRED is defined in the main sketch *prior* to including the HomeSpan library with `#include "HomeSpan.h"`, HomeSpan will throw a compile-time error unless the version of the library included is equal to, or later than, the version specified using the VERSION macro. Example: ```C++ -#define REQUIRED VERISON(2,1,3) // throws a compile-time error unless HomeSpan library used is version 2.1.3 or later +#define REQUIRED VERSION(1,3,0) // throws a compile-time error unless HomeSpan library used is version 1.3.0 or later +#include "HomeSpan.h" ``` ### *#define CUSTOM_CHAR(name,uuid,perms,format,defaultValue,minValue,maxValue,staticRange)* ### *#define CUSTOM_CHAR_STRING(name,uuid,perms,defaultValue)*