Added SD card status to Info tab.

This commit is contained in:
Gunther Brunner
2014-07-25 20:16:39 +09:00
parent 7988927c8d
commit a169da2925
2 changed files with 14 additions and 0 deletions

View File

@@ -4,4 +4,14 @@ module.exports = function InfoCtrl($scope, LightboxImageService) {
var enhancedPhoto800 = '/static/app/devices/photo/x800/' + device.image
LightboxImageService.open(title, enhancedPhoto800)
}
var getSdStatus = function () {
$scope.control.getSdStatus().then(function (result) {
$scope.$apply(function () {
$scope.sdCardMounted = (result.lastData === 'sd_mounted')
})
})
}
getSdStatus()
}