You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2023/01/29 20:34:44 UTC

[nuttx] 02/02: sim_framebuffer: fix fb_pollnotify not called

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 04438891246900af0593a9f80699dd73f54b0ac7
Author: pengyiqiang <pe...@xiaomi.com>
AuthorDate: Thu Dec 22 12:36:36 2022 +0800

    sim_framebuffer: fix fb_pollnotify not called
    
    Signed-off-by: pengyiqiang <pe...@xiaomi.com>
---
 arch/sim/src/sim/sim_framebuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/sim/src/sim/sim_framebuffer.c b/arch/sim/src/sim/sim_framebuffer.c
index 8de52036a8..b0609acc4e 100644
--- a/arch/sim/src/sim/sim_framebuffer.c
+++ b/arch/sim/src/sim/sim_framebuffer.c
@@ -348,7 +348,7 @@ void sim_x11loop(void)
 
   if (now - last >= MSEC2TICK(16))
     {
-      if (sim_x11update() > 0)
+      if (sim_x11update() >= 0)
         {
           fb_pollnotify(&g_fbobject);
         }