Project

General

Profile

Revision 60800b68

ID60800b687c3b25dc980a6a613d03269dcf56b690
Parent 164c2505
Child 60a90290, 35a71cce

Added by AnsonLinux almost 4 years ago

cliffSensor.cpp fixed.

View differences:

scout_avr/src/cliffSensor.cpp
32 32

  
33 33
bool read_cliffSensor_left(void)
34 34
{
35
	if(_PINLEVEL(1) | flag_cliff1)
35
	if(_PINLEVEL(1) || flag_cliff1)
36 36
	{
37 37
		flag_cliff1 = 0;
38 38
		EIMSK |= (1<<INT1);
......
43 43

  
44 44
bool read_cliffSensor_right(void)
45 45
{
46
	if(_PINLEVEL(2) | flag_cliff2)
46
	if(_PINLEVEL(2) || flag_cliff2)
47 47
	{
48 48
		flag_cliff2 = 0;
49 49
		EIMSK |= (1<<INT6); // enable INT6

Also available in: Unified diff