mirror of
https://github.com/ocogeclub/ocoge.git
synced 2024-11-21 15:19:48 +00:00
[fix] aquestalkpi が特定の条件で動作しなくなっていたのを修正
This commit is contained in:
parent
8f4a624b55
commit
8c5e89853d
@ -2837,7 +2837,7 @@ Blockly.Blocks['aquestalk_pi'] = {
|
||||
};
|
||||
Blockly.JavaScript['aquestalk_pi'] = function (block) {
|
||||
var value_talk = Blockly.JavaScript.valueToCode(block, 'talk', Blockly.JavaScript.ORDER_ATOMIC);
|
||||
var code = `"${elutil.path.join(elutil.executable_path, 'aquestalkpi/AquesTalkPi') + ' -g 50 ' + value_talk + ' | aplay'}", { shell: true }`;
|
||||
var code = `'${elutil.path.join(elutil.executable_path, 'aquestalkpi/AquesTalkPi')} -g 50 ' + ${value_talk} + ' | aplay', { shell: true }`;
|
||||
return [code, Blockly.JavaScript.ORDER_NONE];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user