From 16f5f1e3b80a45b38fcd6d1751ab82606976fe2e Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 2 Sep 2009 18:23:55 +0000 Subject: [PATCH] Better warning handling, without the need of that awful check. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2871 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/ser_avr.c | 4 +--- bertos/mware/formatwr.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bertos/cpu/avr/drv/ser_avr.c b/bertos/cpu/avr/drv/ser_avr.c index 746bb527..805c0a66 100644 --- a/bertos/cpu/avr/drv/ser_avr.c +++ b/bertos/cpu/avr/drv/ser_avr.c @@ -454,9 +454,7 @@ 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 SPI SS pin set as output for proper operation, check schematics for possible conflicts. - #endif + #warning FIXME: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 133a1932..3f11522e 100644 --- a/bertos/mware/formatwr.c +++ b/bertos/mware/formatwr.c @@ -108,9 +108,7 @@ /*bernie: save some memory, who cares about floats with lots of decimals? */ #define FRMWRI_BUFSIZE 134 - #if !(ARCH & ARCH_NIGHTTEST) - #warning 134 is too much, the code must be fixed to have a lower precision limit - #endif + #warning FIXME:134 is too much, the code must be fixed to have a lower precision limit #else /* * Conservative estimate. Should be (probably) 12 (which is the size necessary -- 2.25.1