Skip to content

Commit 69413ee

Browse files
Update InternalTempSensor.ino
Fixed issue caused by https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/132/files
1 parent e0e5872 commit 69413ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

STM32F1/libraries/A_STM32_Examples/examples/General/InternalTempSensor/InternalTempSensor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void setup_temperature_sensor() {
1919
// temperature sensor from power down mode. Do this first 'cause according to
2020
// the Datasheet section 5.3.21 it takes from 4 to 10 uS to power up the sensor.
2121

22-
regs->CR2 |= ADC_CR2_TSEREFE;
22+
regs->CR2 |= ADC_CR2_TSVREFE;
2323

2424
// 2. Select a sample time of 17.1 μs
2525
// set channel 16 sample time to 239.5 cycles

0 commit comments

Comments
 (0)