From 837818f4cc2ef6b422779016fdfc71ccdebe1e06 Mon Sep 17 00:00:00 2001 From: HomeSpan Date: Fri, 13 Jan 2023 07:28:52 -0600 Subject: [PATCH] Update Reference.md --- docs/Reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Reference.md b/docs/Reference.md index 19af3d6..871fdaa 100644 --- a/docs/Reference.md +++ b/docs/Reference.md @@ -276,7 +276,7 @@ The following methods are supported: * returns a vector of pointers to Services that were added using `addLink()` * useful for creating loops that iterate over all linked Services * note that the returned vector points to generic SpanServices, which should be re-cast as needed - * example: `for(auto myValve : faucet::getLinks()) { if((MyValve *)myValve)->active->getVal()) ... }` checks all Valves linked to to a Faucet + * example: `for(auto myValve : faucet->getLinks()) { if((MyValve *)myValve)->active->getVal()) ... }` checks all Valves linked to a Faucet * `virtual boolean update()` * HomeSpan calls this method upon receiving a request from a HomeKit Controller to update one or more Characteristics associated with the Service. Users should override this method with code that implements that requested updates using one or more of the SpanCharacteristic methods below. Method **must** return *true* if update succeeds, or *false* if not.