Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SCM::ManagePCAEnable() {
- if (m_bPCAOutputEnabled) {
- GPIO1_HIGH;
- m_bPCAOutputEnabled = false;
- OCR1A = 155;
- }
- else {
- m_nPCAEnableWindowCountdown--;
- // Protection against loss of communication from COM module.
- if (m_nPCAEnableWindowCountdown > 0) {
- GPIO1_LOW;
- m_bPCAOutputEnabled = true;
- }
- OCR1A = 15;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment