~ruther/qmk_firmware

150219318198af40f7e10f375f7808a63bf5a2ee — Manuel Ullmann 2 years ago e77699a
quantum/action_util.c: Use uint8_t for oneshot_layer_data (#20423)

1 files changed, 1 insertions(+), 1 deletions(-)

M quantum/action_util.c
M quantum/action_util.c => quantum/action_util.c +1 -1
@@ 90,7 90,7 @@ bool has_oneshot_mods_timed_out(void) {
 *   L => are layer bits
 *   S => oneshot state bits
 */
static int8_t oneshot_layer_data = 0;
static uint8_t oneshot_layer_data = 0;

inline uint8_t get_oneshot_layer(void) {
    return oneshot_layer_data >> 3;