Skip to content

keyball_set_cpi() crashes the keyball #806

Description

@Ceffa93

I have the following code:

layer_state_t layer_state_set_user(layer_state_t state) {
    keyball_set_cpi(get_highest_layer(state) == 3 ? 1 : 4);
    return state;
}

After some time I use the keyboard, the pointer completely freezes.
Re-flashing does not solve the problem, the only way is to reset the controller manually.
It is easier to trigger the problem by switching layers frequently.

I tried many variation of the code:

  • reduce frequency of updates
  • move code to other functions that trigger at different timings

but I have not yet found a way to solve the problem.

This makes keyball virtually useless for my case, as I wish to control the speed.

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