incyclist-devices 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,7 +52,7 @@ class BleAdapter extends adpater_1.default {
52
52
  }
53
53
  getUniqueName() {
54
54
  const settings = this.settings;
55
- if (settings.name.match(/[0-9]/g))
55
+ if (settings.name.match(/[0-9]/g) || settings.address === undefined)
56
56
  return this.settings.name;
57
57
  else {
58
58
  const addressHash = settings.address.substring(0, 2) + settings.address.slice(-2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "dependencies": {
5
5
  "@serialport/bindings-interface": "^1.2.2",
6
6
  "@serialport/parser-byte-length": "^9.0.1",