Fix Cppcheck warnings (#684)

This commit is contained in:
Olivier
2016-12-10 12:46:52 -08:00
committed by Bruce Lacey
parent 8e1ef13804
commit 37881d56ba
6 changed files with 18 additions and 14 deletions
+4 -2
View File
@@ -426,11 +426,13 @@ bool _processInternalMessages(void)
#if defined(MY_GATEWAY_FEATURE)
// registeration requests are exclusively handled by GW/Controller
#if !defined(MY_REGISTRATION_CONTROLLER)
// auto registration if version compatible
bool approveRegistration = true;
bool approveRegistration;
#if defined(MY_CORE_COMPATIBILITY_CHECK)
approveRegistration = (_msg.getByte() >= MY_CORE_MIN_VERSION);
#else
// auto registration if version compatible
approveRegistration = true;
#endif
#if (F_CPU>16000000)