Skip to content

Commit

Permalink
change medtronic driver to new bows
Browse files Browse the repository at this point in the history
  • Loading branch information
gniezen committed Jun 21, 2017
1 parent 40057f8 commit 2bd89b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/drivers/medtronic/medtronicDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ var common = require('../../commonFunctions');
var medtronicSimulator = require('./medtronicSimulator');
var crcCalculator = require('../../crc.js');

var isBrowser = typeof window !== 'undefined';
var debug = isBrowser ? require('../../bows')('MedtronicDriver') : console.log;
var isElectron = require('is-electron');
var debug = isElectron() ? require('bows')('MedtronicDriver') : console.log;

module.exports = function (config) {
var cfg = _.clone(config);
Expand Down
4 changes: 2 additions & 2 deletions lib/drivers/medtronic/medtronicSimulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var util = require('util');
var annotate = require('../../eventAnnotations');
var common = require('../../commonFunctions');

var isBrowser = typeof window !== 'undefined';
var debug = isBrowser ? require('../../bows')('MedtronicDriver') : console.log;
var isElectron = require('is-electron');
var debug = isElectron() ? require('bows')('MedtronicDriver') : console.log;
var __DEBUG__ = __DEBUG__ || true;

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/drivers/medtronic/processData.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var common = require('../../commonFunctions');
var annotate = require('../../eventAnnotations');
var TZOUtil = require('../../TimezoneOffsetUtil');

var isBrowser = typeof window !== 'undefined';
var debug = isBrowser ? require('../../bows')('MedtronicDriver') : console.log;
var isElectron = require('is-electron');
var debug = isElectron() ? require('bows')('MedtronicDriver') : console.log;
var __DEBUG__ = __DEBUG__ || true;

var RECORD_TYPES = {
Expand Down

0 comments on commit 2bd89b1

Please sign in to comment.