Skip to content

Conversation

@juehv
Copy link
Contributor

@juehv juehv commented Jul 26, 2018

I removed messages when duty cycling is disabled.

 I removed messages when duty cycling is disabled.
if [ "$DUTY_CYCLE" -gt "0" ] && [ "$DIFF_SECONDS" -gt "$DUTY_CYCLE" ]; then
echo "$DIFF_SECONDS (of $DUTY_CYCLE) since last run --> start new cycle."
return 0
elif [ "$DUTY_CYCLE" -eq "0" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to remove this elif completely? Won’t that make it fall through to the next else, and print an incorrect message instead of no message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm you're right!

@juehv
Copy link
Contributor Author

juehv commented Jul 29, 2018

@scottleibrand Do you have additional concerns with the code?

@scottleibrand scottleibrand merged commit f43db5e into openaps:dev Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants