UNPKG

1.14 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.SAFETY_ELM327 = exports.SAFETY_ALLOUTPUT = exports.SAFETY_TOYOTA_NOLIMITS = exports.SAFETY_HONDA_BOSCH = exports.SAFETY_TOYOTA = exports.SAFETY_HONDA = exports.SAFETY_NOOUTPUT = undefined;
7exports.default = Panda;
8
9var _browser = require('./impl/browser');
10
11var _browser2 = _interopRequireDefault(_browser);
12
13var _panda = require('./panda');
14
15var _panda2 = _interopRequireDefault(_panda);
16
17function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
19var SAFETY_NOOUTPUT = exports.SAFETY_NOOUTPUT = 0;
20var SAFETY_HONDA = exports.SAFETY_HONDA = 1;
21var SAFETY_TOYOTA = exports.SAFETY_TOYOTA = 2;
22var SAFETY_HONDA_BOSCH = exports.SAFETY_HONDA_BOSCH = 4;
23var SAFETY_TOYOTA_NOLIMITS = exports.SAFETY_TOYOTA_NOLIMITS = 0x1336;
24var SAFETY_ALLOUTPUT = exports.SAFETY_ALLOUTPUT = 0x1337;
25var SAFETY_ELM327 = exports.SAFETY_ELM327 = 0xE327;
26
27function Panda(options) {
28 options = options || {};
29
30 var device = new _browser2.default(options, navigator.usb);
31 options.device = device;
32 return new _panda2.default(options);
33}
\No newline at end of file