Skip to content

Commit

Permalink
🔊 More logs!
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterds committed Mar 4, 2018
1 parent fe45f35 commit f5c7b59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/services/Servo.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class ServoService {

moveRight() {
if (this.position <= servo.pos.right) {
this.logService.log('fail', `[Services.Servo] Max servo position, not executing to prevent damage!`);
return;
}

Expand All @@ -67,6 +68,7 @@ class ServoService {

moveLeft() {
if (this.position >= servo.pos.left) {
this.logService.log('fail', `[Services.Servo] Max servo position, not executing to prevent damage!`);
return;
}

Expand Down

0 comments on commit f5c7b59

Please sign in to comment.