Fix return value signedness
This commit is contained in:
parent
9d0bb921b3
commit
8104fbbad0
@ -40,6 +40,6 @@
|
||||
|
||||
void init_sonar(void);
|
||||
void trigger_sonar(void);
|
||||
unsigned int read_sonar(void);
|
||||
int read_sonar(void);
|
||||
|
||||
#endif /* SONAR_H */
|
||||
|
@ -28,7 +28,7 @@ ISR(TIMER1_OVF_vect)
|
||||
TCNT1 = 0;
|
||||
}
|
||||
|
||||
unsigned int read_sonar()
|
||||
int read_sonar()
|
||||
{
|
||||
int dist_in_cm = 0;
|
||||
init_sonar();
|
||||
|
Loading…
Reference in New Issue
Block a user