Skip to content

Commit f2c6062

Browse files
committed
Fix numbering of analog outputs to be consistent with printed markings on Opta's case.
1 parent f5a74e3 commit f2c6062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/opcua_server/opcua_server.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ void setup()
300300

301301
/* Expose analog inputs as readable OPC UA properties. */
302302
char analog_out_name[32] = {0};
303-
snprintf(analog_out_name, sizeof(analog_out_name), "Analog Output I%d", a + 1);
303+
snprintf(analog_out_name, sizeof(analog_out_name), "Analog Output O%d", a - OA_CH_6 + 1);
304304
exp_analog->analog_output_mgr()->add_analog_output(opc_ua_server, analog_out_name, [i, a](float const voltage) { return reinterpret_cast<AnalogExpansion *>(OptaController.getExpansionPtr(i))->pinVoltage(a, voltage); });
305305
}
306306

0 commit comments

Comments
 (0)