Skip to content

Commit

Permalink
Merge branch 'master' into remove-jellyfish
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Oct 31, 2024
2 parents 667d594 + 5e64192 commit df02a50
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
10 changes: 9 additions & 1 deletion app/reducers/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,17 @@ const devices = {
enabled: {linux: false, mac: false, win: true},
powerOnlyWarning: true,
},
onetouchultraplus: {
instructions: i18n.t('Plug in meter with micro-USB'),
name: 'OneTouch Ultra Plus Flex',
key: 'onetouchultraplus',
source: {type: 'device', driverId: 'OneTouchUltraPlus'},
enabled: {linux: true, mac: true, win: true},
powerOnlyWarning: true,
},
onetouchverioble: {
instructions: i18n.t('Turn meter on and make sure Bluetooth is switched on'),
name: 'OneTouch Verio Flex, Verio Reflect & Select Plus Flex (with Bluetooth)',
name: 'OneTouch Verio Flex, Verio Reflect, Select Plus Flex and Ultra Plus Flex (with Bluetooth)',
key: 'onetouchverioble',
source: {type: 'device', driverId: 'OneTouchVerioBLE'},
enabled: {mac: true, win: true, linux: true}
Expand Down
3 changes: 2 additions & 1 deletion electron-builder-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ const config = {
publisherName: [
'Tidepool Project'
],
rfc3161TimeStampServer: 'http://timestamp.digicert.com'
rfc3161TimeStampServer: 'http://timestamp.digicert.com',
asarUnpack: '**\\*.node',
},
mac: {
category: 'public.app-category.tools',
Expand Down
5 changes: 4 additions & 1 deletion lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ device.deviceDrivers = {
OneTouchVerioIQ: oneTouchVerioIQ,
OneTouchVerioBLE: oneTouchVerioBLE,
OneTouchSelect: oneTouchVerio,
OneTouchUltraPlus: oneTouchVerio,
AbbottFreeStyleLite: abbottFreeStyleLite,
AbbottFreeStyleLibre: abbottFreeStyleLibre,
AbbottFreeStyleNeo: abbottFreeStyleNeo,
Expand Down Expand Up @@ -111,6 +112,7 @@ device.deviceComms = {
OneTouchVerioIQ: serialDevice,
OneTouchVerioBLE: bleDevice,
OneTouchSelect: usbDevice,
OneTouchUltraPlus: usbDevice,
AbbottFreeStyleLite: serialDevice,
AbbottFreeStyleLibre: hidDevice,
AbbottFreeStyleNeo: hidDevice,
Expand Down Expand Up @@ -370,7 +372,8 @@ device.detect = (driverId, options, cb) => {
if (webUSBDevice == null && (
driverId === 'InsuletOmniPod' ||
driverId === 'OneTouchVerio' ||
driverId === 'OneTouchSelect'
driverId === 'OneTouchSelect' ||
driverId === 'OneTouchUltraPlus'
)) {
// could also be block mode device
device.deviceInfoCache[driverId] = _.cloneDeep(devdata);
Expand Down
6 changes: 6 additions & 0 deletions lib/core/driverManifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ const driverManifests = {
{ vendorId: 10086, productId: 4100 }, // Select Plus Flex
],
},
OneTouchUltraPlus: {
mode: 'usb',
usb: [
{ vendorId: 10086, productId: 14 }, // Ultra Plus Flex
],
},
OneTouchUltraMini: {
mode: 'serial',
usb: [
Expand Down
2 changes: 1 addition & 1 deletion lib/drivers/onetouch/oneTouchVerio.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class USBScsiDevice {
return callback(new Error(`Could not find device "${deviceInfo.driverId}".`));
}

this.device = findByIds(deviceInfo.usbDevice.vendorId, deviceInfo.usbDevice.productId);
this.device = findByIds(deviceInfo?.usbDevice?.vendorId, deviceInfo?.usbDevice?.productId);
if (!this.device) {
return callback(new Error(`Failed to open connection to ${deviceInfo.driverId}`));
}
Expand Down

0 comments on commit df02a50

Please sign in to comment.