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

Origin commit data
------------------
Commit: 240ec1838f
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-02-07 (Tue, 07 Feb 2012)
This commit is contained in:
[CST] Focus
2012-02-07 15:10:10 +04:00
parent 128928767c
commit 5bd4c3c121

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)