Add missing braces and fix copyright

This commit is contained in:
Stephen Caudle 2015-09-14 11:08:53 -04:00
parent 2e554f3ef5
commit 9ad49f5077
2 changed files with 3 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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.