Skip to content

Commit

Permalink
Merge branch 'master' into release-2.59.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Sep 16, 2024
2 parents 500fb2e + b3e8eb1 commit 7b9fc76
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/reducers/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ const devices = {
source: {type: 'device', driverId: 'Dexcom'},
enabled: {mac: true, win: true, linux: true}
},
embracetalk: {
instructions: {
text: i18n.t('Plug in meter with cable and set meter to'),
linkText: i18n.t('PC Link Mode'),
link: 'https://support.tidepool.org/hc/en-us/articles/27971030950804',
},
name: 'EmbraceTALK',
key: 'embracetalk',
source: {type: 'device', driverId: 'EmbraceTALK'},
enabled: {mac: true, win: true, linux: true}
},
weitai: {
instructions: 'Plug in PDA with micro-USB',
name: 'Equil Insulin Patch/Micro Pump',
Expand Down
2 changes: 2 additions & 0 deletions lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ device.deviceDrivers = {
AbbottLibreView: libreViewDriver,
GlucoRx: glucoRxDriver,
ReliOnPlatinum: accuChekUSBDriver,
EmbraceTALK: glucocardExpression,
};

device.deviceComms = {
Expand Down Expand Up @@ -142,6 +143,7 @@ device.deviceComms = {
AbbottLibreView: libreViewDriver,
GlucoRx: hidDevice,
ReliOnPlatinum: usbDevice,
EmbraceTALK: serialDevice,
};

_.forEach(_.keys(device.deviceComms), (driverId) => {
Expand Down
8 changes: 8 additions & 0 deletions lib/core/driverManifests.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ const driverManifests = {
{ vendorId: 5946, productId: 8664 },
],
},
EmbraceTALK: {
mode: 'serial',
bitrate: 19200,
usb: [
{ vendorId: 1659, productId: 8963, driver: 'pl2303' },
{ vendorId: 1027, productId: 24577, driver: 'ftdi' }, // FTDI cable
],
},
};

export default driverManifests;
5 changes: 5 additions & 0 deletions lib/drivers/i-sens/glucocardExpression.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ module.exports = (config) => {
model: 'GlucocardExpression',
});

if (cfg.deviceInfo.driverId === 'EmbraceTALK') {
cfg.deviceInfo.model = 'EmbraceTALK';
cfg.deviceInfo.manufacturers = ['Omnis Health'];
}

const serialDevice = config.deviceComms;
const driver = new GlucocardExpression(cfg);

Expand Down

0 comments on commit 7b9fc76

Please sign in to comment.