Fixed debug printf compiler warning for float as double in Lighting_Output_Present_Value_Set() function.
This commit is contained in:
@@ -1065,14 +1065,14 @@ bool Lighting_Output_Present_Value_Set(
|
|||||||
isgreaterequal(value, 0.0) && islessequal(value, 100.0)) {
|
isgreaterequal(value, 0.0) && islessequal(value, 100.0)) {
|
||||||
debug_printf(
|
debug_printf(
|
||||||
"LO[%u]: Present-Value@%u %0.2f\n", object_instance,
|
"LO[%u]: Present-Value@%u %0.2f\n", object_instance,
|
||||||
priority, value);
|
priority, (double)value);
|
||||||
Present_Value_Set(pObject, value, priority);
|
Present_Value_Set(pObject, value, priority);
|
||||||
Lighting_Command_Transition_Default(pObject, priority, value);
|
Lighting_Command_Transition_Default(pObject, priority, value);
|
||||||
status = true;
|
status = true;
|
||||||
} else {
|
} else {
|
||||||
debug_printf(
|
debug_printf(
|
||||||
"LO[%u]: Present-Value@%u %0.2f out-of-range\n",
|
"LO[%u]: Present-Value@%u %0.2f out-of-range\n",
|
||||||
object_instance, priority, value);
|
object_instance, priority, (double)value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user