Skip to content

Commit

Permalink
fix math.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SebCanet committed May 17, 2020
1 parent ecef361 commit f2cf9f9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified sync.ffs_db
Binary file not shown.
4 changes: 2 additions & 2 deletions www/generators/BlocklyArduino/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ Blockly.Arduino.math_interval = function (block) {
var value_valeur = Blockly.Arduino.valueToCode(block, 'valeur', Blockly.Arduino.ORDER_ATOMIC);
var dropdown_comp_sup = OPERATORS[block.getFieldValue('comp_sup')];
var value_sup = Blockly.Arduino.valueToCode(block, 'sup', Blockly.Arduino.ORDER_ATOMIC);
var code = '((' + value_valeur + ' ' + dropdown_comp_inf + ' ' + value_inf + ') && (' + value_valeur + ' ' + dropdown_comp_sup + ' ' + value_sup + '))';
var code = '(( ' + value_inf + ' ' + dropdown_comp_inf + ' ' + value_valeur + ') && (' + value_valeur + ' ' + dropdown_comp_sup + ' ' + value_sup + '))';
return [code, Blockly.Arduino.ORDER_NONE];
};
};
Binary file modified www/sync.ffs_db
Binary file not shown.

0 comments on commit f2cf9f9

Please sign in to comment.