Bugfix/atmel studio arm compile warnings (#60)

* Cleanup warnings generated by Atmel Studio compiling for SAMD21 ARM

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2020-03-20 16:42:41 -05:00
committed by GitHub
parent f18612f1ec
commit d557522c1f
10 changed files with 20 additions and 28 deletions
+5 -3
View File
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include "bacnet/lighting.h"
#include "bacnet/bacdcode.h"
@@ -265,14 +266,15 @@ bool lighting_command_same(
(dst->use_priority == src->use_priority)) {
status = true;
if ((dst->use_target_level) &&
(dst->target_level != src->target_level)) {
islessgreater(dst->target_level, src->target_level)) {
status = false;
}
if ((dst->use_ramp_rate) && (dst->ramp_rate != src->ramp_rate)) {
if ((dst->use_ramp_rate) &&
islessgreater(dst->ramp_rate, src->ramp_rate)) {
status = false;
}
if ((dst->use_step_increment) &&
(dst->step_increment != src->step_increment)) {
islessgreater(dst->step_increment, src->step_increment)) {
status = false;
}
if ((dst->use_fade_time) && (dst->fade_time != src->fade_time)) {