minor tweaks

This commit is contained in:
philippe44
2020-01-13 21:08:08 -08:00
parent 8a26e3004d
commit a0b3452dd7
6 changed files with 7 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
#include "embedded.h"
#include "display.h"
#define TAG "display"
static const char *TAG = "display";
static bool (*slimp_handler_chain)(u8_t *data, int len);
static struct display_handle_s *handle;

View File

@@ -32,7 +32,7 @@
#define I2C_PORT 1
#define I2C_ADDRESS 0x3C
#define LINELEN 40
#define TAG "display"
static const char *TAG = "display";
static void vfdc_handler( u8_t *_data, int bytes_read);
static void grfe_handler( u8_t *data, int len);

View File

@@ -200,7 +200,8 @@ static bool SSD1306_Init( struct SSD1306_Device* DeviceHandle, int Width, int He
DeviceHandle->Height = Height;
DeviceHandle->FramebufferSize = ( DeviceHandle->Width * Height ) / 8;
DeviceHandle->Framebuffer = heap_caps_calloc( 1, DeviceHandle->FramebufferSize, MALLOC_CAP_DMA | MALLOC_CAP_8BIT );
// DeviceHandle->Framebuffer = heap_caps_calloc( 1, DeviceHandle->FramebufferSize, MALLOC_CAP_INTERNAL );
DeviceHandle->Framebuffer = calloc( 1, DeviceHandle->FramebufferSize );
NullCheck( DeviceHandle->Framebuffer, return false );

View File

@@ -19,7 +19,7 @@
#define BATTERY_TIMER (10*1000)
static const char TAG[] = "battery";
static const char *TAG = "battery";
static struct {
float sum, avg;

View File

@@ -21,7 +21,7 @@
#define MAX_LED 8
#define BLOCKTIME 10 // up to portMAX_DELAY
static const char TAG[] = "led";
static const char *TAG = "led";
static struct led_s {
gpio_num_t gpio;

View File

@@ -26,7 +26,7 @@
#define MONITOR_TIMER (10*1000)
static const char TAG[] = "monitor";
static const char *TAG = "monitor";
static TimerHandle_t monitor_timer;