removed Artifacts from other Project
This commit is contained in:
parent
41b27c02dd
commit
5a6dc524ad
@ -124,31 +124,6 @@ void Debug_pushMessage(const char *format, ...)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void pushCANDebug(uint32_t id, uint8_t dlc, uint8_t *data)
|
|
||||||
{
|
|
||||||
if ((DebuggerStatus[dbg_Serial] == enabled) || (DebuggerStatus[dbg_Webui] == enabled))
|
|
||||||
{
|
|
||||||
char buff[100];
|
|
||||||
char *p = buff;
|
|
||||||
p += snprintf(p, sizeof(buff), "CAN: 0x%08X | %d | ", id, dlc);
|
|
||||||
for (int i = 0; i < dlc; i++)
|
|
||||||
{
|
|
||||||
p += snprintf(p, sizeof(buff) - (p - buff), "%02X ", data[i]);
|
|
||||||
}
|
|
||||||
*(p++) = '\n';
|
|
||||||
*p = '\0';
|
|
||||||
|
|
||||||
if (DebuggerStatus[dbg_Serial] == enabled)
|
|
||||||
{
|
|
||||||
Serial.print(buff);
|
|
||||||
}
|
|
||||||
if (DebuggerStatus[dbg_Webui] == enabled)
|
|
||||||
{
|
|
||||||
Websocket_PushLiveDebug(String(buff));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void processCmdDebug(String command)
|
void processCmdDebug(String command)
|
||||||
{
|
{
|
||||||
if (command == "help")
|
if (command == "help")
|
||||||
@ -199,7 +174,6 @@ void Debug_formatPersistence()
|
|||||||
|
|
||||||
void Debug_printSystemInfo()
|
void Debug_printSystemInfo()
|
||||||
{
|
{
|
||||||
Debug_pushMessage("Souko's ChainOiler Mk1\n");
|
|
||||||
Debug_pushMessage("Hostname: %s\n", globals.DeviceName);
|
Debug_pushMessage("Hostname: %s\n", globals.DeviceName);
|
||||||
|
|
||||||
FlashMode_t ideMode = ESP.getFlashChipMode();
|
FlashMode_t ideMode = ESP.getFlashChipMode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user