From 8236b6fb9acba0a6dc765491a72b1b8343511a8d Mon Sep 17 00:00:00 2001 From: Gregg Date: Tue, 5 Oct 2021 21:27:41 -0500 Subject: [PATCH] Marked old SpanRange() class as [[deprecated]] This will cause a Warning (not an Error) at compile time indicating the class has been deprecated and that the Characteristic::setRange() method should be used instead. Sketch will still run and SpanRange will still function correctly if used. Will delete from code base at some point in the future. --- src/HomeSpan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HomeSpan.h b/src/HomeSpan.h index daafb93..485fea2 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -501,7 +501,7 @@ struct SpanCharacteristic{ /////////////////////////////// -struct SpanRange{ +struct [[deprecated("Please use Characteristic::setRange() method instead.")]] SpanRange{ SpanRange(int min, int max, int step); };