From a6aa972c1cec9e8bf754b70a8bab783df878dcc4 Mon Sep 17 00:00:00 2001 From: Wouter van Verre Date: Thu, 9 Apr 2015 17:39:42 +0100 Subject: [PATCH] jhd1313m1.cxx: Add comment explaining why write starts with a usleep call Signed-off-by: Wouter van Verre Signed-off-by: Mihai Tudor Panu --- src/lcd/jhd1313m1.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lcd/jhd1313m1.cxx b/src/lcd/jhd1313m1.cxx index 37fcc7d1..c8b41283 100644 --- a/src/lcd/jhd1313m1.cxx +++ b/src/lcd/jhd1313m1.cxx @@ -115,6 +115,7 @@ Jhd1313m1::write(std::string msg) { mraa_result_t ret = MRAA_SUCCESS; + // This usleep fixes an odd bug where the clear function doesn't always work properly usleep(1000); for (std::string::size_type i = 0; i < msg.size(); ++i) {