From: batt Date: Wed, 2 Sep 2009 15:31:20 +0000 (+0000) Subject: Remove warning during test. X-Git-Tag: 2.2.0~103 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6ad5c01d9a3d323e34a547283e7a534f7c3b9d15;p=bertos.git Remove warning during test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2865 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/ser_avr.c b/bertos/cpu/avr/drv/ser_avr.c index c94bf6b0..746bb527 100644 --- a/bertos/cpu/avr/drv/ser_avr.c +++ b/bertos/cpu/avr/drv/ser_avr.c @@ -454,10 +454,9 @@ static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct * - as input but tied high forever! * This driver set the pin as output. */ - #if (ARCH & ARCH_NIGHTTEST) - #warning __FILTER_NEXT_WARNING__ + #if !(ARCH & ARCH_NIGHTTEST) + #warning SPI SS pin set as output for proper operation, check schematics for possible conflicts. #endif - #warning SPI SS pin set as output for proper operation, check schematics for possible conflicts. ATOMIC(SPI_DDR |= BV(SPI_SS_BIT)); ATOMIC(SPI_DDR &= ~BV(SPI_MISO_BIT)); diff --git a/bertos/mware/formatwr.c b/bertos/mware/formatwr.c index 8c79d81f..133a1932 100644 --- a/bertos/mware/formatwr.c +++ b/bertos/mware/formatwr.c @@ -108,7 +108,9 @@ /*bernie: save some memory, who cares about floats with lots of decimals? */ #define FRMWRI_BUFSIZE 134 - #warning 134 is too much, the code must be fixed to have a lower precision limit + #if !(ARCH & ARCH_NIGHTTEST) + #warning 134 is too much, the code must be fixed to have a lower precision limit + #endif #else /* * Conservative estimate. Should be (probably) 12 (which is the size necessary