eitd/dmx.cpp: remove buffer casting to unsigned char

This commit is contained in:
[CST] Focus
2012-02-07 15:10:10 +04:00
parent c68321c68a
commit 240ec1838f

View File

@@ -250,7 +250,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
lock();
int rc = dmx->Read((unsigned char *) buf, 4098, timeoutInMSeconds);
int rc = dmx->Read(buf, 4098, timeoutInMSeconds);
if (rc < 3)
{
@@ -271,7 +271,7 @@ int DMX::getSection(uint8_t *buf, const unsigned timeoutInMSeconds, int &timeout
}
/* lets assume buffer size never less than 8, and parse LongSection */
LongSection section((unsigned char *) buf);
LongSection section(buf);
uint16_t section_length = section.getSectionLength();
if (section_length <= 0)