chore(examples): remove unused functions or varible to avoid compiling warning

This commit is contained in:
dongheng
2019-06-18 13:07:25 +08:00
parent ed4bbcf610
commit c1d329b78f
2 changed files with 0 additions and 13 deletions

View File

@ -54,18 +54,6 @@ static esp_err_t oled_write_cmd(uint8_t data)
return ESP_OK; return ESP_OK;
} }
// Write an 8-bit data
static esp_err_t oled_write_byte(uint8_t data)
{
uint32_t buf = data << 24;
spi_trans_t trans = {0};
trans.mosi = &buf;
trans.bits.mosi = 8;
oled_set_dc(1);
spi_trans(HSPI_HOST, trans);
return ESP_OK;
}
static esp_err_t oled_rst() static esp_err_t oled_rst()
{ {
gpio_set_level(OLED_RST_GPIO, 0); gpio_set_level(OLED_RST_GPIO, 0);

View File

@ -46,7 +46,6 @@ static QueueHandle_t uart0_queue;
static void uart_event_task(void *pvParameters) static void uart_event_task(void *pvParameters)
{ {
uart_event_t event; uart_event_t event;
size_t buffered_size;
uint8_t *dtmp = (uint8_t *) malloc(RD_BUF_SIZE); uint8_t *dtmp = (uint8_t *) malloc(RD_BUF_SIZE);
for (;;) { for (;;) {