Skip to content

Commit f5a74e3

Browse files
committed
Fix erroneous case to boolean (most be float).
1 parent 9715161 commit f5a74e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/analog/AnalogOutput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void analog_output_on_write_request(UA_Server *server,
3333
const UA_DataValue *data)
3434
{
3535
AnalogOutput * this_ptr = reinterpret_cast<AnalogOutput *>(nodeContext);
36-
bool const voltage = *(UA_Float *)(data->value.data);
36+
float const voltage = *(UA_Float *)(data->value.data);
3737
this_ptr->onWriteRequest(server, nodeid, voltage);
3838
}
3939

0 commit comments

Comments
 (0)