summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/input/ir_sensor.c
blob: 12d74e02db7336dd9e2381321ad37d6c227f905c (plain)
1
2
3
4
5
6
7
8
9
#include "ir_sensor.h"

//-----------------------------------------------------------------------------
uint16 IR_Sensor::GetIRIntensity()
{
	if(!parent) return 0;

	return min(parent->GetADCValue(channel) + this->intensityCorrection, 1023);
}