[TI DLP Buglist]data type error in illum_EnableIllumination function
2013-08-06 16:01
471 查看
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;
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.
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.
相关文章推荐
- [TI DLP Buglist]data type error in illum_EnableIllumination function
- SQL Server error "Xml data type is not supported in distributed queries" and workaround for it
- TypeError: Value passed to parameter 'input' has DataType float64 not in list of allowed values: fl
- ERROR: Error in Log_event::read_log_event(): 'read error', data_len: 438, event_type: 2
- waring:in_array()[function.in-array]:wrong datatype for second argument
- ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQ L DATA in its decla
- 报错:OpenCV Error: Assertion failed (src.size() == dst.size() && src.type() == dst.ty pe()) in unknown function, file ..……
- TypeError in Threading. function takes 1 positional argument but 100 were given
- An error occurred at line: 7 in the generated java file Only a type can be imported. java.util.list
- 小程序之坑一TypeError: this.setData is not a function
- Arcgis for Javascript 出现“init.js->TypeError: f is not a function”
- TypeError: view must be a callable or a list/tuple in the case of include().解决办法
- ERROR: The version of SQL Server in use does not support datatype 'datetime2'.
- Bug--Error creating bean with name 'sessionFactory' defined in class path resource [data_context.xml
- Uncaught (in promise) TypeError: __webpack_require__.i(...) is not a function
- ERROR: Error in Log_event::read_log_event(): 'read error', data_len: 438, event_type: 2
- Uncaught (in promise) TypeError: Super expression must either be null or a function
- [Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined、vuejs路由使用的问题Error in render function
- Error: The version of SQL Server in use does not support datatype 'datetime2
- ERROR: Error in Log_event::read_log_event(): 'read error', data_len: 438, event_type: 2