Add missing braces and fix copyright
This commit is contained in:
parent
2e554f3ef5
commit
9ad49f5077
|
@ -171,11 +171,12 @@ void adc_lld_stop(ADCDriver *adcp) {
|
|||
if (adcp->state == ADC_READY) {
|
||||
|
||||
#if NRF51_ADC_USE_ADC1
|
||||
if (&ADCD1 == adcp)
|
||||
if (&ADCD1 == adcp) {
|
||||
|
||||
nvicDisableVector(ADC_IRQn);
|
||||
adcp->adc->INTENCLR = ADC_INTENCLR_END_Clear << ADC_INTENCLR_END_Pos;
|
||||
adc_lld_stop_conversion(adcp);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
|
||||
Copyright (C) 2015 Stephen Caudle
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
|
Loading…
Reference in New Issue