get rid of all compile warnings
This commit is contained in:
14
.vscode/extensions.json
vendored
14
.vscode/extensions.json
vendored
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
// See http://go.microsoft.com/fwlink/?LinkId=827846
|
||||||
// for the documentation about the extensions.json format
|
// for the documentation about the extensions.json format
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"platformio.platformio-ide"
|
"platformio.platformio-ide"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ void AliyunIoTSDK::loop() {
|
|||||||
|
|
||||||
void AliyunIoTSDK::sendEvent(const char *eventId, const char *param) {
|
void AliyunIoTSDK::sendEvent(const char *eventId, const char *param) {
|
||||||
char topicKey[156];
|
char topicKey[156];
|
||||||
sprintf(topicKey, "%s/%s/post", 0, eventId);
|
snprintf(topicKey, sizeof(topicKey) - 1, "%d/%s/post", 0, eventId);
|
||||||
char jsonBuf[1024];
|
char jsonBuf[1024];
|
||||||
sprintf(jsonBuf, ALINK_EVENT_BODY_FORMAT, param, eventId);
|
sprintf(jsonBuf, ALINK_EVENT_BODY_FORMAT, param, eventId);
|
||||||
Serial.println(jsonBuf);
|
Serial.println(jsonBuf);
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ volatile irparams_t irparams;
|
|||||||
irparams_t *irparams_save; // A copy of the interrupt state while decoding.
|
irparams_t *irparams_save; // A copy of the interrupt state while decoding.
|
||||||
|
|
||||||
#ifndef UNIT_TEST
|
#ifndef UNIT_TEST
|
||||||
static void ICACHE_RAM_ATTR read_timeout(void *arg __attribute__((unused))) {
|
static void IRAM_ATTR read_timeout(void *arg __attribute__((unused))) {
|
||||||
os_intr_lock();
|
os_intr_lock();
|
||||||
if (irparams.rawlen) irparams.rcvstate = kStopState;
|
if (irparams.rawlen) irparams.rcvstate = kStopState;
|
||||||
os_intr_unlock();
|
os_intr_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ICACHE_RAM_ATTR gpio_intr() {
|
static void IRAM_ATTR gpio_intr() {
|
||||||
uint32_t now = system_get_time();
|
uint32_t now = system_get_time();
|
||||||
uint32_t gpio_status = GPIO_REG_READ(GPIO_STATUS_ADDRESS);
|
uint32_t gpio_status = GPIO_REG_READ(GPIO_STATUS_ADDRESS);
|
||||||
static uint32_t start = 0;
|
static uint32_t start = 0;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
#if defined(ESP8266)
|
#if defined(ESP8266)
|
||||||
// interrupt handler and related code must be in RAM on ESP8266,
|
// interrupt handler and related code must be in RAM on ESP8266,
|
||||||
// according to issue #46.
|
// according to issue #46.
|
||||||
#define RECEIVE_ATTR ICACHE_RAM_ATTR
|
#define RECEIVE_ATTR IRAM_ATTR
|
||||||
#define VAR_ISR_ATTR
|
#define VAR_ISR_ATTR
|
||||||
#elif defined(ESP32)
|
#elif defined(ESP32)
|
||||||
#define RECEIVE_ATTR IRAM_ATTR
|
#define RECEIVE_ATTR IRAM_ATTR
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ framework = arduino
|
|||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
upload_speed = 115200
|
upload_speed = 115200
|
||||||
board_build.flash_mode = dout
|
board_build.flash_mode = dout
|
||||||
build_flags =
|
build_flags =
|
||||||
|
-Wno-unused-function
|
||||||
|
-Wno-unused-variable
|
||||||
-DLOG_DEBUG=1
|
-DLOG_DEBUG=1
|
||||||
-DLOG_INFO=1
|
-DLOG_INFO=1
|
||||||
-DLOG_ERROR=1
|
-DLOG_ERROR=1
|
||||||
upload_port = COM7
|
|
||||||
monitor_port = COM7
|
|
||||||
|
|
||||||
[env:esp8266-1m-base]
|
[env:esp8266-1m-base]
|
||||||
board = ${common.board_1m}
|
board = ${common.board_1m}
|
||||||
|
|||||||
@@ -25,11 +25,11 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <ESP.h>
|
#include <Esp.h>
|
||||||
#include <WString.h>
|
#include <WString.h>
|
||||||
|
|
||||||
#include "defines.h"
|
#include "defines.h"
|
||||||
#include "IRBabyIRIS.h"
|
#include "IRbabyIRIS.h"
|
||||||
|
|
||||||
int getIRISKitVersion(char *buffer, int buffer_size) {
|
int getIRISKitVersion(char *buffer, int buffer_size) {
|
||||||
if (NULL == buffer) {
|
if (NULL == buffer) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
|
||||||
#include "IRbabySerial.h"
|
#include "IRbabySerial.h"
|
||||||
#include "IRBabyAlink.h"
|
#include "IRbabyAlink.h"
|
||||||
#include "IRbabyGlobal.h"
|
#include "IRbabyGlobal.h"
|
||||||
|
|
||||||
#define TOPIC_NAME_MAX (64)
|
#define TOPIC_NAME_MAX (64)
|
||||||
Reference in New Issue
Block a user