chore: warning squashing.

This commit is contained in:
btsimonh
2022-03-05 10:20:13 +00:00
parent ccba8d898b
commit 49a4e73afe
5 changed files with 24 additions and 19 deletions

View File

@@ -23,6 +23,10 @@
void TuyaMCU_RunFrame();
// from http_fns. should move to a utils file.
extern unsigned char hexbyte( const char* hex );
const char *TuyaMCU_GetCommandTypeLabel(int t) {
if(t == TUYA_CMD_HEARTBEAT)
return "Hearbeat";

View File

@@ -616,14 +616,14 @@ int http_fn_flash_read_tool(http_request_t *request) {
}
int http_fn_cmd_tool(http_request_t *request) {
int res;
int rem;
int now;
int nowOfs;
int hex;
//int res;
//int rem;
//int now;
//int nowOfs;
//int hex;
int i;
char tmpA[128];
char tmpB[64];
//char tmpB[64];
http_setup(request, httpMimeTypeHTML);
poststr(request,htmlHeader);
@@ -671,7 +671,7 @@ int http_fn_uart_tool(http_request_t *request) {
if(http_getArg(request->url,"data",tmpA,sizeof(tmpA))) {
hprintf128(request,"<h3>Sent %s!</h3>",tmpA);
if(0){
TuyaMCU_Send(tmpA, strlen(tmpA));
TuyaMCU_Send((byte *)tmpA, strlen(tmpA));
// bk_send_string(0,tmpA);
} else {
byte b;

View File

@@ -391,7 +391,6 @@ static char tcplogbuf[TCPLOGBUFSIZE];
static void log_client_thread( beken_thread_arg_t arg )
{
int fd = (int) arg;
int len = 0;
while ( 1 ){
int count = getTcp(tcplogbuf, TCPLOGBUFSIZE);
if (count){

View File

@@ -5,20 +5,21 @@
#include "new_common.h"
#ifdef WINDOWS
#undef UNICODE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef WINDOWS
#undef UNICODE
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#else
#include "lwip/sockets.h"
#include "logging/logging.h"
#endif

View File

@@ -56,6 +56,7 @@
#include "flash_config/flash_config.h"
#include "flash_config/flash_vars_vars.h"
#include "drv_tuyaMCU.h"
#include "ntp_time.h"
#undef Malloc