mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-18 07:25:55 +08:00
Remove unused code
This commit is contained in:
parent
4c4ff06518
commit
0ceec99c01
@ -408,7 +408,7 @@ void MKSService::messageWiFiControl(const uint8_t * dataFrame, const size_t data
|
|||||||
log_esp3d("WiFi control flag not supported");
|
log_esp3d("WiFi control flag not supported");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Exception handle - but actually not used
|
||||||
void MKSService::messageException(const uint8_t * dataFrame, const size_t dataSize )
|
void MKSService::messageException(const uint8_t * dataFrame, const size_t dataSize )
|
||||||
{
|
{
|
||||||
if(dataSize != 1) {
|
if(dataSize != 1) {
|
||||||
@ -423,24 +423,6 @@ void MKSService::messageException(const uint8_t * dataFrame, const size_t dataSi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MKSService::waitForAck()
|
|
||||||
{
|
|
||||||
uint32_t timestart = millis();
|
|
||||||
bool res=true;
|
|
||||||
while ((_uploadStatus==UNKNOW_STATE)&&((millis()-timestart)<ACK_TIMEOUT)) {
|
|
||||||
serial_service.handle();
|
|
||||||
Hal::wait(10);
|
|
||||||
}
|
|
||||||
if (_uploadStatus!=SUCCESS_STATE) {
|
|
||||||
res=false;
|
|
||||||
}
|
|
||||||
if(_uploadStatus==UNKNOW_STATE) {
|
|
||||||
log_esp3d("Ack timeout");
|
|
||||||
}
|
|
||||||
_uploadStatus=UNKNOW_STATE;
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
void MKSService::messageWiFiConfig(const uint8_t * dataFrame, const size_t dataSize )
|
void MKSService::messageWiFiConfig(const uint8_t * dataFrame, const size_t dataSize )
|
||||||
{
|
{
|
||||||
String ssid;
|
String ssid;
|
||||||
|
@ -41,7 +41,6 @@ public:
|
|||||||
static bool isTail(const char c);
|
static bool isTail(const char c);
|
||||||
static bool isFrame(const char c);
|
static bool isFrame(const char c);
|
||||||
static bool isCommand(const char c);
|
static bool isCommand(const char c);
|
||||||
static bool waitForAck();
|
|
||||||
static bool sendFirstFragment(const char* filename, size_t filesize);
|
static bool sendFirstFragment(const char* filename, size_t filesize);
|
||||||
static bool sendFragment(const uint8_t * dataFrame, const size_t dataSize,uint fragmentID);
|
static bool sendFragment(const uint8_t * dataFrame, const size_t dataSize,uint fragmentID);
|
||||||
static uint getFragmentID(uint32_t fragmentNumber, bool isLast=false);
|
static uint getFragmentID(uint32_t fragmentNumber, bool isLast=false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user