blynk & neopixelring & w7500
Fork of WIZwiki-7500_Blynk by
Diff: utility/BlynkHandlers.cpp
- Revision:
- 9:7369ec77a3ea
- Parent:
- 7:8879692d4e6c
- Child:
- 10:c241e4227173
--- a/utility/BlynkHandlers.cpp Wed Oct 12 10:38:37 2016 +0300 +++ b/utility/BlynkHandlers.cpp Thu Jan 05 14:55:36 2017 +0200 @@ -33,6 +33,8 @@ BLYNK_CONNECTED() __attribute__((weak, alias("BlynkNoOpCbk"))); BLYNK_DISCONNECTED() __attribute__((weak, alias("BlynkNoOpCbk"))); +BLYNK_APP_CONNECTED() __attribute__((weak, alias("BlynkNoOpCbk"))); + BLYNK_ON_READ_IMPL(Default); BLYNK_ON_WRITE_IMPL(Default); @@ -374,7 +376,7 @@ WidgetReadHandler GetReadHandler(uint8_t pin) { - if (pin >= COUNT_OF(BlynkReadHandlerVector)) + if (pin >= BLYNK_COUNT_OF(BlynkReadHandlerVector)) return NULL; #ifdef BLYNK_HAS_PROGMEM return (WidgetReadHandler)pgm_read_word(&BlynkReadHandlerVector[pin]); @@ -385,7 +387,7 @@ WidgetWriteHandler GetWriteHandler(uint8_t pin) { - if (pin >= COUNT_OF(BlynkWriteHandlerVector)) + if (pin >= BLYNK_COUNT_OF(BlynkWriteHandlerVector)) return NULL; #ifdef BLYNK_HAS_PROGMEM return (WidgetWriteHandler)pgm_read_word(&BlynkWriteHandlerVector[pin]);