more G-Labs products

Author Topic: Bug in Alarm System (hg <= r358)  (Read 1126 times)

April 04, 2014, 03:52:49 PM
Read 1126 times

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
There's a little bug in Security Alarm System program. When disarming, siren modules will not switched off.
To fix this, enter the program source and modify the very last lines of code by adding sirenModules.Off(); as shown below:

Code: [Select]
//Pause(1);
        alarmModules.Off();
        sirenModules.Off();   // <--- add the missing instruction here
    }
    Pause(1);
}

Update the program to make the change effective.

Cheers,
g.


There are no comments for this topic. Do you want to be the first?