Revision 60800b68 scout_avr/src/cliffSensor.cpp

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