Skip to content

Commit

Permalink
Merge pull request #149 from tidepool-org/bayercontourusb
Browse files Browse the repository at this point in the history
Bayer Contour USB
  • Loading branch information
jebeck committed Sep 2, 2015
2 parents 6d82179 + b492a2a commit c707b3e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/core/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ device._deviceDrivers = {
'InsuletOmniPod': insuletOmniPod,
'OneTouchUltra2': oneTouchUltra2,
'BayerContourNext': bayerContourNext,
'BayerContourNextUsb': bayerContourNext
'BayerContourNextUsb': bayerContourNext,
'BayerContourUsb': bayerContourNext
};

device._deviceComms = {
Expand All @@ -53,7 +54,8 @@ device._deviceComms = {
'AbbottFreeStyle': serialDevice,
'OneTouchUltra2': serialDevice,
'BayerContourNext': hidDevice,
'BayerContourNextUsb': hidDevice
'BayerContourNextUsb': hidDevice,
'BayerContourUsb': hidDevice
};

device._silentComms = {};
Expand Down
3 changes: 2 additions & 1 deletion lib/core/deviceInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ module.exports = {
'InsuletOmniPod': infoBuilder('Insulet OmniPod', 'Upload .ibf file from PDM.'),
'OneTouchUltra2': infoBuilder('OneTouch Ultra2', ''),
'BayerContourNext': infoBuilder('Bayer Contour Next', 'Blood glucose meter'),
'BayerContourNextUsb': infoBuilder('Bayer Contour Next USB', 'Blood glucose meter')
'BayerContourNextUsb': infoBuilder('Bayer Contour Next USB', 'Blood glucose meter'),
'BayerContourUsb': infoBuilder('Bayer Contour USB', 'Blood glucose meter')
};
3 changes: 2 additions & 1 deletion lib/drivers/docs/bayerContourNext.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Bayer Contour Next
# Bayer Contour Next

Supported devices:
- Bayer Contour Next
- Bayer Contour Next USB
- Bayer Contour USB

## Checklist for Blood Glucose Meter Implementation

Expand Down
5 changes: 5 additions & 0 deletions lib/state/appState.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ appState.getInitial = function() {
name: 'Bayer Contour Next USB',
key: 'bayercontournextusb',
source: {type: 'device', driverId: 'BayerContourNextUsb'}
},
{
name: 'Bayer Contour USB',
key: 'bayercontourusb',
source: {type: 'device', driverId: 'BayerContourUsb'}
}
];

Expand Down
7 changes: 7 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@
"mode": "HID",
"vendorId": 6777,
"productId": 29712
},
{
"deviceName": "BayerContourUsb",
"driverId": "BayerContourUsb",
"mode": "HID",
"vendorId": 6777,
"productId": 24578
}
]
}
Expand Down

0 comments on commit c707b3e

Please sign in to comment.