diff --git a/CHANGELOG.md b/CHANGELOG.md index 251fac98..efcdd8c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## HEAD + +### Fixes + +- Fixed a setup issue with TPS650. + ## 3.2.0 (2017-12-06) ### Enhancements diff --git a/lib/util/devutil.js b/lib/util/devutil.js index 3cd1ef19..d8f6192a 100644 --- a/lib/util/devutil.js +++ b/lib/util/devutil.js @@ -109,8 +109,9 @@ devutil.makeIdentity = function(serial, properties) { var product = properties['ro.product.name'] var cpuPlatform = properties['ro.board.platform'] - // Remove brand prefix for consistency - if (model.substr(0, brand.length) === brand) { + // Remove brand prefix for consistency. Note that some devices (e.g. TPS650) + // do not expose the brand property. + if (brand && model.substr(0, brand.length) === brand) { model = model.substr(brand.length) }