Skip to content

select the pickerValue based on 75% of recommendedBolus #761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2018

Conversation

jasoncalabrese
Copy link
Contributor

previously was using 75% of the pickerValue
also remove the extra casting

@@ -93,8 +93,7 @@ final class BolusInterfaceController: WKInterfaceController, IdentifiableClass {
maxBolusValue = recommendedBolus
}

let recommendedPickerValue = pickerValueFromBolusValue(recommendedBolus)
pickerValue = Int(Double(recommendedPickerValue) * 0.75)
pickerValue = pickerValueFromBolusValue(recommendedBolus * 0.75)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this looks good. Tiny nitpick; there's an extra space after recommendedBolus

previously was using 75% of the pickerValue
also remove the extra casting
@jasoncalabrese
Copy link
Contributor Author

good catch, cleaned it up
(I need to find the xcode settings to show whitespace)

@ps2
Copy link
Collaborator

ps2 commented Jul 19, 2018

Editor -> Show Invisibles

@ps2 ps2 merged commit ba08fa3 into LoopKit:dev Jul 19, 2018
@jasoncalabrese jasoncalabrese deleted the watch-prefil branch July 19, 2018 05:42
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