mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
jhd1313m1.cxx: Add comment explaining why write starts with a usleep call
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
67bd592ed9
commit
a6aa972c1c
@ -115,6 +115,7 @@ Jhd1313m1::write(std::string msg)
|
|||||||
{
|
{
|
||||||
mraa_result_t ret = MRAA_SUCCESS;
|
mraa_result_t ret = MRAA_SUCCESS;
|
||||||
|
|
||||||
|
// This usleep fixes an odd bug where the clear function doesn't always work properly
|
||||||
usleep(1000);
|
usleep(1000);
|
||||||
|
|
||||||
for (std::string::size_type i = 0; i < msg.size(); ++i) {
|
for (std::string::size_type i = 0; i < msg.size(); ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user