Merge pull request #1687 from rigrig/buzz-demonstrate

buzz_menu: give a demonstration after selecting a pattern
pull/1716/head
Gordon Williams 2022-04-19 10:39:42 +01:00 committed by GitHub
commit cb9c0100ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ exports.pattern = function(value, callback) {
min: 0, max: vibPatterns.length-1,
format: v => vibPatterns[v]||/*LANG*/"Off",
onchange: v => {
require("buzz").pattern(vibPatterns[v]);
callback(vibPatterns[v]);
}
};