Fix the default device type.

This commit is contained in:
Pagan Gazzard 2014-11-28 17:23:39 +00:00 committed by Pablo Carranza Vélez
parent b9675de9e0
commit fcc6d1375d

View File

@ -35,7 +35,7 @@ registerDevice = (apiKey, userId, applicationId, deviceType) ->
module.exports = ->
# Load config file
userConfig = require('/boot/config.json')
userConfig.deviceType ?= 'Raspberry Pi'
userConfig.deviceType ?= 'raspberry-pi'
Promise.try ->
if userConfig.uuid?