diff --git a/app/driver/spi.c b/app/driver/spi.c index 12c32b54..c2d673b9 100644 --- a/app/driver/spi.c +++ b/app/driver/spi.c @@ -134,7 +134,7 @@ void spi_mast_byte_write(uint8 spi_no, uint8 *data) while(READ_PERI_REG(SPI_CMD(spi_no))&SPI_USR); - WRITE_PERI_REG(SPI_W0(HSPI), *data); + WRITE_PERI_REG(SPI_W0(spi_no), *data); SET_PERI_REG_MASK(SPI_CMD(spi_no), SPI_USR); while(READ_PERI_REG(SPI_CMD(spi_no))&SPI_USR); diff --git a/app/include/user_config.h b/app/include/user_config.h index c812f2fa..6dd40d7c 100644 --- a/app/include/user_config.h +++ b/app/include/user_config.h @@ -17,10 +17,9 @@ // #define DEVELOP_VERSION #define FULL_VERSION_FOR_USER -#ifdef DEVELOP_VERSION - #define USE_OPTIMIZE_PRINTF +#ifdef DEVELOP_VERSION #define NODE_DEBUG #endif /* DEVELOP_VERSION */