Commit 5487d900 authored by carlosperate's avatar carlosperate

Adding static type to the map blocks.

parent 91842be8
......@@ -36,5 +36,13 @@ Blockly.Blocks['base_map'] = {
this.setInputsInline(true);
this.setOutput(true);
this.setTooltip('Re-maps a number from [0-1024] to another range.');
},
/**
* Assigns a type to the block, the current map implementation for Arduino
* takes the inputs a longs and returns a long, so automatic cast to int.
* @this Blockly.Block
*/
getType: function() {
return 'int';
}
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment