An enum is a C language feature, managed by the C compiler. The pre-processor runs before the C compiler and does not know anything about enums.

On 17/02/2014, at 10:19 pm, Mathieu <notifications@github.com> wrote:

> In source_code/src/oledmp/oledmp.c:
> 
> > +*/
> > +
> > +/**
> > + * @file OledMP Mooltipass 256x64x4 OLED display driver
> > + */
> > +
> > +#include "mooltipass.h"
> > +#include <util/delay.h>
> > +#include <avr/pgmspace.h>
> > +
> > +#include "low_level_utils.h"
> > +#include "oledmp.h"
> > +#include "bitstream.h"
> > +
> > +// Make sure the USART SPI is selected
> > +#if SPI_OLED != SPI_USART
> 
> Could you remind me why you need a #define and not an enum?
> Because until now it was perfectly working by doing like that:
> enum spi_type {SPI_NATIVE, SPI_USART};
> #define SPI_OLED SPI_USART
> 
> —
> Reply to this email directly or view it on GitHub.
>