empty data
When I tried to pull data from a PV in a range were no numbers had been stored, for me I got division by 0 and issue with toReturn being empty (so toReturn[0] is already throwing an error). With this change it worked as expected.
When I tried to pull data from a PV in a range were no numbers had been stored, for me I got division by 0 and issue with toReturn being empty (so toReturn[0] is already throwing an error). With this change it worked as expected.