mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-19 05:38:16 +01:00
chore: warning squashing.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user