添加移除指示灯函数
This commit is contained in:
parent
781ddaaa0f
commit
8a88d977ca
|
@ -99,6 +99,12 @@ void Esp8266::SetLed(OutputPort& led)
|
|||
Led = fp;
|
||||
}
|
||||
|
||||
void Esp8266::RemoveLed()
|
||||
{
|
||||
if (Led)delete (FlushPort*)Led;
|
||||
Led = nullptr;
|
||||
}
|
||||
|
||||
void LoopTask(void* param)
|
||||
{
|
||||
auto& esp = *(Esp8266*)param;
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
virtual void Config();
|
||||
void SetLed(Pin led);
|
||||
void SetLed(OutputPort& led);
|
||||
void RemoveLed();
|
||||
|
||||
//virtual const String ToString() const { return String("Esp8266"); }
|
||||
virtual ISocket* CreateSocket(NetType type);
|
||||
|
|
Loading…
Reference in New Issue