File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ void twi_stop(void){
72
72
}
73
73
74
74
static void twi_delay (unsigned char v ){
75
- unsigned char i ;
75
+ unsigned int i ;
76
76
unsigned int reg ;
77
77
for (i = 0 ;i < v ;i ++ ) reg = GPI ;
78
78
}
@@ -88,7 +88,7 @@ static bool twi_write_start(void) {
88
88
}
89
89
90
90
static bool twi_write_stop (void ){
91
- unsigned char i = 0 ;
91
+ unsigned int i = 0 ;
92
92
SCL_LOW ();
93
93
SDA_LOW ();
94
94
twi_delay (twi_dcount );
@@ -102,7 +102,7 @@ static bool twi_write_stop(void){
102
102
}
103
103
104
104
static bool twi_write_bit (bool bit ) {
105
- unsigned char i = 0 ;
105
+ unsigned int i = 0 ;
106
106
SCL_LOW ();
107
107
if (bit ) SDA_HIGH ();
108
108
else SDA_LOW ();
@@ -114,7 +114,7 @@ static bool twi_write_bit(bool bit) {
114
114
}
115
115
116
116
static bool twi_read_bit (void ) {
117
- unsigned char i = 0 ;
117
+ unsigned int i = 0 ;
118
118
SCL_LOW ();
119
119
SDA_HIGH ();
120
120
twi_delay (twi_dcount + 1 );
You can’t perform that action at this time.
0 commit comments