Skip to content

Source:maximum

since 1.5.0

Return the source maximum (and modify it on Vars and Sensors)

local value = source:maximum()

Parameters

None.

Returns

value (number)

Examples

From the official Ethos documentation
source = system.getSource({name="RxBatt"})
source:maximum(6.0)
print(source:maximum())