From 9ad49f5077b1cfbce07715119629e1ddc26bf2d3 Mon Sep 17 00:00:00 2001 From: Stephen Caudle Date: Mon, 14 Sep 2015 11:08:53 -0400 Subject: Add missing braces and fix copyright --- os/hal/ports/NRF51/NRF51822/adc_lld.c | 3 ++- testhal/NRF51/NRF51822/ADC/main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/NRF51/NRF51822/adc_lld.c b/os/hal/ports/NRF51/NRF51822/adc_lld.c index 0c28cb0..7f3413c 100644 --- a/os/hal/ports/NRF51/NRF51822/adc_lld.c +++ b/os/hal/ports/NRF51/NRF51822/adc_lld.c @@ -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 } } diff --git a/testhal/NRF51/NRF51822/ADC/main.c b/testhal/NRF51/NRF51822/ADC/main.c index d413c85..6371a61 100644 --- a/testhal/NRF51/NRF51822/ADC/main.c +++ b/testhal/NRF51/NRF51822/ADC/main.c @@ -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. -- cgit v1.2.3