Skip to content

Commit

Permalink
Merge pull request #81 from asterics/bklaus/issue#21/fix-fs20-patchin…
Browse files Browse the repository at this point in the history
…g-and-testing

issue#21 always do double check on fs20.isConnected() because sometim…
  • Loading branch information
klues authored Sep 29, 2017
2 parents a2d1572 + 75cfd3f commit d5116b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ angular.module(asterics.appComponents)
thiz.test = function () {
thiz.triedCheck = true;
thiz.isConnected = null;
envControlFsService.isConnected().then(function () { //do test twice because sometimes the first time is wrong?!
envControlFsService.isConnected().then(function (isConnected) {
thiz.isConnected = isConnected;
scrollToEnd();
});
envControlFsService.isConnected().then(function (isConnected) { //do test twice because sometimes the first time is wrong?!
thiz.isConnected = isConnected;
scrollToEnd();
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ angular.module(asterics.appServices)
thiz.isConnected = function () {
var def = $q.defer();
thiz.fs20Action('1111_1111', '28').then(function () { //not defined command
def.resolve(true);
thiz.fs20Action('1111_1111', '28').then(function () { //do double check because sometimes first time is wrong
def.resolve(true);
}, function error() {
def.resolve(false);
});
}, function error() {
def.resolve(false);
});
Expand Down

0 comments on commit d5116b7

Please sign in to comment.