Skip to content

Commit

Permalink
fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
muten84 committed Apr 12, 2016
1 parent ebda342 commit fbbee07
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ipcam.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ function scheduleActionFor(camera,action,duration,during,times){
case 'right':
fun = function(){camera.moveRightFor(duration);}
break;
case 'up':
fun = function(){camera.moveUpFor(duration);}
break;
case 'down':
fun = function(){camera.moveDownFor(duration);}
break;
default:
break;
}
Expand All @@ -67,6 +73,12 @@ function doNow(camera,action,duration){
case 'right':
camera.moveRightFor(duration);
break;
case 'up':
camera.moveUpFor(duration);
break;
case 'down':
camera.moveDownFor(duration);
break;
default:
break;
}
Expand Down

0 comments on commit fbbee07

Please sign in to comment.