Skip to content

Commit 98d973b

Browse files
committed
Set the ADC trim default to zero.
1 parent 812f84a commit 98d973b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/blockly/generators/propc/sensors.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,21 +1082,21 @@ Blockly.Blocks.lis3dh_init = {
10821082
.appendField(
10831083
new Blockly.FieldNumber(
10841084
'0',
1085-
-500,
1086-
500,
1085+
null,
1086+
null,
10871087
1
10881088
),"VSS_VOLTAGE")
10891089
.appendField(' 3.3V ')
10901090
.appendField(
10911091
new Blockly.FieldNumber(
10921092
'0',
1093-
2700,
1094-
3800,
1093+
null,
1094+
null,
10951095
1
10961096
), "VDD_VOLTAGE");
10971097

10981098
this.setFieldValue(vssVoltField || '0', 'VSS_VOLTAGE');
1099-
this.setFieldValue(vddVoltField || '3300', 'VDD_VOLTAGE');
1099+
this.setFieldValue(vddVoltField || '0', 'VDD_VOLTAGE');
11001100

11011101
// Move this input field to the bottom of the init block
11021102
this.moveInputBefore('VOLT_CALIBRATE', null);

0 commit comments

Comments
 (0)