Skip to content

Battery Level #1

Description

@Apidcloud

Hello,

Just noticed a minor issue in the code regarding google glass battery level retrieval (chapter 11).

In the class StatsUtil it's returned (int)level * 100 which will result in 0 every single time. The cast should affect the entire operation: (int)(level * 100).

Best Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions