Files
SmartThingsPublic/devicetypes/smartthings
Tom Manley e98a04a1b4 multi: Fix x,y,z parsing error
The previous axis value parsing code was very fragile. For example, this
code block:

    def unsignedY = hexToInt(part.split("13")[1].trim())

would fail when `part` was "13xx13", where "xx" is any value. The split
assumed the value "13" was present only once in the string, and everything
after the "13" was the value. When "13" was part of the value this code
would interpret only "xx" as the value, instead of "xx13".

The new parsing code is not fragile like this. It knows exactly what bytes
of the string are X, Y, and Z and parses the values correctly.
2016-01-04 15:21:55 -06:00
..
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-11-03 18:08:51 -08:00
2015-08-04 15:49:03 -07:00
2015-10-21 15:48:31 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-09-03 13:09:12 -07:00
2015-08-04 15:49:03 -07:00
2015-11-12 19:28:57 -08:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-11-03 18:08:51 -08:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-12-07 14:37:10 -08:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00
2015-08-04 15:49:03 -07:00