diff --git a/gt06.js b/gt06.js index 1b4f7bf..3612ec1 100644 --- a/gt06.js +++ b/gt06.js @@ -30,6 +30,9 @@ Gt06.prototype.parse = function (data) { case 0x12: // location message Object.assign(parsed, parseLocation(msg)); break; + case 34: // location message + Object.assign(parsed, parseLocation(msg)); + break; case 0x13: // status message Object.assign(parsed, parseStatus(msg)); parsed.expectsResponse = true; @@ -86,6 +89,9 @@ function selectEvent(data) { case 0x12: eventStr = 'location'; break; + case 34: + eventStr = 'location'; + break; case 0x13: eventStr = 'status'; break;