mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Remove compiler warnings.
This commit is contained in:
@@ -758,6 +758,6 @@ void CNextion::sendCommand(const char* command)
|
|||||||
{
|
{
|
||||||
assert(command != NULL);
|
assert(command != NULL);
|
||||||
|
|
||||||
m_serial->write((unsigned char*)command, ::strlen(command));
|
m_serial->write((unsigned char*)command, (unsigned int)::strlen(command));
|
||||||
m_serial->write((unsigned char*)"\xFF\xFF\xFF", 3U);
|
m_serial->write((unsigned char*)"\xFF\xFF\xFF", 3U);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ void CTFTSerial::displayBitmap(unsigned char x, unsigned char y, const char* fil
|
|||||||
m_serial->write((unsigned char*)"\x1B\x0D", 2U);
|
m_serial->write((unsigned char*)"\x1B\x0D", 2U);
|
||||||
m_serial->write(&x, 1U);
|
m_serial->write(&x, 1U);
|
||||||
m_serial->write(&y, 1U);
|
m_serial->write(&y, 1U);
|
||||||
m_serial->write((unsigned char*)filename, ::strlen(filename));
|
m_serial->write((unsigned char*)filename, (unsigned int)::strlen(filename));
|
||||||
m_serial->write((unsigned char*)"\xFF", 1U);
|
m_serial->write((unsigned char*)"\xFF", 1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -497,5 +497,5 @@ void CTFTSerial::displayText(const char* text)
|
|||||||
{
|
{
|
||||||
assert(text != NULL);
|
assert(text != NULL);
|
||||||
|
|
||||||
m_serial->write((unsigned char*)text, ::strlen(text));
|
m_serial->write((unsigned char*)text, (unsigned int)::strlen(text));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user