zoukankan      html  css  js  c++  java
  • [TI DLP Buglist]data type error in illum_EnableIllumination function

    I am debuging my code today, I find when my code is running, it's stop at illum_EnableIllumination().

    After check it, I find my code is in a infinite loop, why it happen?

    Just because there is an data type error in the counter, just look at code:

    uint08 TimeoutCount = 0;

        				while ( (!SEQ_GetPhaseLockedToColorWheelIndex()) && TimeoutCount < 1000)
        				{
        					TimeoutCount++;
    
        					TMR_Delay(300);


     

    so when the sequency phase locked is failed, then it will be always a infinite loop.

    how to fix it? just change the variable 'TimeoutCount' from uint08 to uint16.

    and i also suggest you print a error message if TimtoutCount is bigger or equal to 1000.

  • 相关阅读:
    python安装
    实现node服务器
    VSCode集成tomcat及使用方法
    CommonJS规范
    Bootstrap 笔记
    vue笔记
    jgGrid模板添加
    vue组件中的data
    解析DNS
    StaticResource
  • 原文地址:https://www.cnblogs.com/riskyer/p/3241513.html
Copyright © 2011-2022 走看看