did nothing
This commit is contained in:
@ -11,7 +11,7 @@ uchar Ds18b20Init(void) {
|
||||
uchar i;
|
||||
DSPORT = 0; // Pull down bus
|
||||
i = 70;
|
||||
while(i--);
|
||||
while(i--) {}
|
||||
DSPORT = 1; // Pull up bus
|
||||
i = 0;
|
||||
while(DSPORT) {
|
||||
@ -29,7 +29,7 @@ void Ds18b20WriteByte(uchar payload) {
|
||||
i++;
|
||||
DSPORT = payload & 0x01;
|
||||
i = 6;
|
||||
while(i--);
|
||||
while(i--){}
|
||||
DSPORT = 1;
|
||||
payload >>= 1;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
void Delay1ms(uint y);
|
||||
uchar Ds18b20Init(void);
|
||||
void Ds18b20WriteByte(uchar com);
|
||||
void Ds18b20WriteByte(uchar payload);
|
||||
uchar Ds18b20ReadByte(void);
|
||||
void Ds18b20ChangTemp(void);
|
||||
void Ds18b20ReadTempCom(void);
|
||||
|
Reference in New Issue
Block a user