sekigon-gonnoc / qmk_firmware

keyboard controller firmware for Atmel AVR and ARM USB families
http://qmk.fm
GNU General Public License v2.0
202 stars 82 forks source link

rgblight: Enable twinkle mode in rgblight #63

Open yokada-code opened 10 months ago

yokada-code commented 10 months ago

Description

rand() returns an integer type value which is usually a very large value compared with the threshold in the current lottery logic with uint8_t. Because of this, most of the lottery fails and no twinkle is observed on the keyboard.

Cherry-picked from the original qmk repository: 571a9794af0249ef23a0af2ed2ee64191299faa7

Types of Changes

Issues Fixed or Closed by This PR

Checklist