lab 3 fix
This commit is contained in:
parent
1b89bef1dd
commit
5a0ceba79a
|
@ -46,11 +46,11 @@ void SysTick_Handler(void) { // every 1ms
|
||||||
++tick_count;
|
++tick_count;
|
||||||
|
|
||||||
if (1 == (tick_count % 10)) {
|
if (1 == (tick_count % 10)) {
|
||||||
//ReflectanceStart(); // every 10ms
|
ReflectanceStart(); // every 10ms
|
||||||
}
|
}
|
||||||
|
|
||||||
if (2 == (tick_count % 10)) {
|
if (2 == (tick_count % 10)) {
|
||||||
uint8_t r = ReflectanceRead(1000);
|
uint8_t r = ReflectanceEnd();
|
||||||
DebugDump( BumpRead(), ReflectancePosition(r) );
|
DebugDump( BumpRead(), ReflectancePosition(r) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue