Skip to content

Commit 95bb830

Browse files
committed
easy to read
1 parent 3391164 commit 95bb830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/HSLink-Pro/src/HSLink_Pro_expansion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static double Get_VREF_Voltage(void) {
191191
static uint8_t i = 0;
192192
sum += this_adc - buf[i];
193193
buf[i] = this_adc;
194-
i = (i + 1) % 7;
194+
i = (i + 1) % 8;
195195
return (double) (sum >> 3) * ADC_REF / 65535 * 2;
196196
}
197197

0 commit comments

Comments
 (0)