266,7 → 266,7 |
void MotorTon(void) |
//############################################################################ |
{ |
unsigned char ADR_TAB[7] = {0,0,3,1,4,2,5}; |
unsigned char ADR_TAB[7] = {0,0,0,1,1,2,2}; |
unsigned int timer = 300,i; |
unsigned int t = 0; |
unsigned char anz = 0,MosfetOkay = 0, grenze = 50; |
478,7 → 478,7 |
Delay(SOUND8_A); |
} |
*/ |
Delay_ms(300 * (6-ADR_TAB[MotorAdresse])); |
Delay_ms(300 * (3-ADR_TAB[MotorAdresse])); |
if(!(MosfetOkay & 0x01)) { anz = 1; UDR='A'; } else |
if(!(MosfetOkay & 0x02)) { anz = 2; UDR='B'; } else |
if(!(MosfetOkay & 0x04)) { anz = 3; UDR='C'; } else |