digitalWrite geht
This commit is contained in:
parent
15ba2f5661
commit
32cd811744
7 changed files with 6 additions and 4 deletions
|
@ -11,6 +11,7 @@ void B15F::init()
|
|||
{
|
||||
|
||||
std::cout << PRE << "Stelle Verbindung mit Adapter her... " << std::flush;
|
||||
usart.setBaudrate(BAUDRATE);
|
||||
usart.openDevice(SERIAL_DEVICE);
|
||||
std::cout << "OK" << std::endl;
|
||||
|
||||
|
|
BIN
drv/b15f.o
BIN
drv/b15f.o
Binary file not shown.
|
@ -67,7 +67,7 @@ uint8_t USART::readByte(void)
|
|||
auto start = std::chrono::steady_clock::now();
|
||||
auto end = start;
|
||||
uint16_t elapsed = 0;
|
||||
while(elapsed < timeout)
|
||||
while(elapsed < timeout * 100)
|
||||
{
|
||||
int n_ready;
|
||||
int code = ioctl(file_desc, FIONREAD, &n_ready);
|
||||
|
|
BIN
drv/usart.o
BIN
drv/usart.o
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue