Subversion Repositories HomeAutomation

Rev

Rev 694 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 694 Rev 815
Line 63... Line 63...
63
            state = STATE_START_WAIT;
63
            state = STATE_START_WAIT;
64
        } else if (state == STATE_START_WAIT) {
64
        } else if (state == STATE_START_WAIT) {
65
            state = STATE_WAIT;
65
            state = STATE_WAIT;
66
        } else if (state == STATE_WAIT) {
66
        } else if (state == STATE_WAIT) {
67
            uint8_t retval = DTMFin_Poll(&rxlen);
67
            uint8_t retval = DTMFin_Poll(&rxlen);
68
            if (retval == RET_FINISHED) {
68
            if (retval == MT8870_Ret_Finished) {
69
                state = STATE_STOP;
69
                state = STATE_STOP;
70
            } else if (retval == RET_OVERFLOW) {
70
            } else if (retval == MT8870_Ret_Overflow) {
71
                state = STATE_IDLE;
71
                state = STATE_IDLE;
72
            }
72
            }
73
        } else if (state == STATE_STOP) {
73
        } else if (state == STATE_STOP) {
74
            //if ((rxbuffer[0] == 0xa || rxbuffer[0] == 0xb) && rxbuffer[rxlen-1] == 0xc) {
74
            //if ((rxbuffer[0] == 0xa || rxbuffer[0] == 0xb) && rxbuffer[rxlen-1] == 0xc) {
75
                for (uint8_t i = 0; i < 16; i=i+2) {
75
                for (uint8_t i = 0; i < 16; i=i+2) {