• R/O
  • HTTP
  • SSH
  • HTTPS

common_source_project-fm7: Commit

Common Source Code Project for Qt (a.k.a for FM-7).


Commit MetaInfo

Revision2ca756db19eae26d990f7d0bfb04be5f8935ada9 (tree)
Time2018-05-16 18:31:53
AuthorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[VM][MSM58321] Fix OOPS around counting pulse.

Change Summary

Incremental Difference

--- a/source/src/vm/msm58321_base.cpp
+++ b/source/src/vm/msm58321_base.cpp
@@ -65,19 +65,19 @@ void MSM58321_BASE::event_callback(int event_id, int err)
6565 count_1024hz = 0;
6666 regs[15] ^= 1;
6767 }
68- if(++count_1s = 8192) {
68+ if(++count_1s == 8192) {
6969 count_1s = 0;
7070 regs[15] &= ~2;
7171 } else {
7272 regs[15] |= 2;
7373 }
74- if(++count_1m = 60 * 8192) {
74+ if(++count_1m == (60 * 8192)) {
7575 count_1m = 0;
7676 regs[15] &= ~4;
7777 } else {
7878 regs[15] |= 4;
7979 }
80- if(++count_1h = 3600 * 8192) {
80+ if(++count_1h == (3600 * 8192)) {
8181 count_1h = 0;
8282 regs[15] &= ~8;
8383 } else {
Show on old repository browser