Fix incorrect lat/lon decoding
This commit is contained in:
@@ -94,8 +94,8 @@ describe('Packet.fromBytes', () => {
|
||||
expect(adv.appdata.hasName).toBe(true);
|
||||
// location values: parser appears to scale values by 10 here, accept that
|
||||
expect(adv.appdata.location).toBeDefined();
|
||||
expect(adv.appdata.location![0] / 10).toBeCloseTo(51.45986, 5);
|
||||
expect(adv.appdata.location![1] / 10).toBeCloseTo(5.45422, 5);
|
||||
expect(adv.appdata.location![0] / 10).toBeCloseTo(5.145986, 5);
|
||||
expect(adv.appdata.location![1] / 10).toBeCloseTo(0.545422, 5);
|
||||
expect(adv.appdata.name).toBe('NL-EHV-VBGB-RPTR');
|
||||
expect(pkt.hash().toUpperCase()).toBe('67C10F75168ECC8C');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user