Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 0718132

Browse files
committed
- fixed bug where code was doing a shift of an laready properly positioned bitmask leading to warning from compiler
1 parent 0ea50d5 commit 0718132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeviceCode/Targets/Native/STM32F4/DeviceCode/STM32F4_Analog/STM32F4_AD_functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ INT32 AD_Read( ANALOG_CHANNEL channel )
111111

112112
// disable internally reference
113113
if(chNum == 16 || chNum == 17) {
114-
ADC->CCR &= ~(1 << ADC_CCR_TSVREFE);
114+
ADC->CCR &= ~ADC_CCR_TSVREFE;
115115
}
116116

117117
return ADCx->DR; // read result

0 commit comments

Comments
 (0)