Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DODO�
arduino-esp32
提交
1e4bf14a
A
arduino-esp32
项目概览
DODO�
/
arduino-esp32
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
arduino-esp32
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1e4bf14a
编写于
9月 17, 2018
作者:
J
Junxiao Shi
提交者:
Me No Dev
9月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cores: replace max, min, round macros with imports from std (#1783)
fixes #1734
上级
f9f995b2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
17 deletion
+12
-17
cores/esp32/Arduino.h
cores/esp32/Arduino.h
+9
-7
libraries/WiFi/src/WiFiClient.h
libraries/WiFi/src/WiFiClient.h
+0
-2
libraries/WiFi/src/WiFiGeneric.cpp
libraries/WiFi/src/WiFiGeneric.cpp
+3
-6
libraries/WiFi/src/WiFiMulti.h
libraries/WiFi/src/WiFiMulti.h
+0
-2
未找到文件。
cores/esp32/Arduino.h
浏览文件 @
1e4bf14a
...
...
@@ -75,7 +75,6 @@
#define abs(x) ((x)>0?(x):-(x))
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define radians(deg) ((deg)*DEG_TO_RAD)
#define degrees(rad) ((rad)*RAD_TO_DEG)
#define sq(x) ((x)*(x))
...
...
@@ -146,6 +145,9 @@ void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
#ifdef __cplusplus
}
#include <algorithm>
#include <cmath>
#include "WCharacter.h"
#include "WString.h"
#include "Stream.h"
...
...
@@ -158,6 +160,12 @@ void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val);
#include "HardwareSerial.h"
#include "Esp.h"
using
std
::
isinf
;
using
std
::
isnan
;
using
std
::
max
;
using
std
::
min
;
using
::
round
;
uint16_t
makeWord
(
uint16_t
w
);
uint16_t
makeWord
(
byte
h
,
byte
l
);
...
...
@@ -176,12 +184,6 @@ extern "C" void configTzTime(const char* tz,
long
random
(
long
);
#endif
/* __cplusplus */
#ifndef _GLIBCXX_VECTOR
// arduino is not compatible with std::vector
#define min(a,b) ((a)<(b)?(a):(b))
#define max(a,b) ((a)>(b)?(a):(b))
#endif
#define _min(a,b) ((a)<(b)?(a):(b))
#define _max(a,b) ((a)>(b)?(a):(b))
...
...
libraries/WiFi/src/WiFiClient.h
浏览文件 @
1e4bf14a
...
...
@@ -23,8 +23,6 @@
#include "Arduino.h"
#include "Client.h"
#undef min
#undef max
#include <memory>
class
WiFiClientSocketHandle
;
...
...
libraries/WiFi/src/WiFiGeneric.cpp
浏览文件 @
1e4bf14a
...
...
@@ -46,9 +46,6 @@ extern "C" {
}
//extern "C"
#include "esp32-hal-log.h"
#undef min
#undef max
#include <vector>
#include "sdkconfig.h"
...
...
@@ -156,8 +153,8 @@ static bool espWiFiStart(bool persistent){
return
false
;
}
_esp_wifi_started
=
true
;
system_event_t
event
;
event
.
event_id
=
SYSTEM_EVENT_WIFI_READY
;
system_event_t
event
;
event
.
event_id
=
SYSTEM_EVENT_WIFI_READY
;
WiFiGenericClass
::
_eventCallback
(
nullptr
,
&
event
);
return
true
;
...
...
@@ -496,7 +493,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m)
}
else
if
(
cm
&&
!
m
){
return
espWiFiStop
();
}
esp_err_t
err
;
err
=
esp_wifi_set_mode
(
m
);
if
(
err
){
...
...
libraries/WiFi/src/WiFiMulti.h
浏览文件 @
1e4bf14a
...
...
@@ -27,8 +27,6 @@
#define WIFICLIENTMULTI_H_
#include "WiFi.h"
#undef min
#undef max
#include <vector>
typedef
struct
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录