Skip to content

Instantly share code, notes, and snippets.

@nchristus
Created August 10, 2018 17:15
Show Gist options
  • Save nchristus/5c9b993d093d8656182e23f63854e6a9 to your computer and use it in GitHub Desktop.
Save nchristus/5c9b993d093d8656182e23f63854e6a9 to your computer and use it in GitHub Desktop.
// OLD
uint32_t layer_state_set_user(uint32_t state) {
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJST)
};
// NEW
uint32_t layer_state_set_user(uint32_t state) {
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJST);
return state;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment