Changed from using MAX_ANALOG_INPUTS to Analog_Input_Count() when updating inputs.

Removed RR_Info handler setup.
This commit is contained in:
petermcs
2010-02-15 11:52:13 +00:00
parent f8b9b5f793
commit c8a9b22a53
+1 -3
View File
@@ -140,8 +140,6 @@ static void Init_Objects(
void)
{
Device_Init();
handler_rr_object_set(OBJECT_DEVICE, DeviceGetRRInfo);
handler_rr_object_set(OBJECT_TRENDLOG, TrendLogGetRRInfo);
}
static void Init_Service_Handlers(
@@ -279,7 +277,7 @@ int main(
trend_log_timer(current_seconds - last_seconds);
last_seconds = current_seconds;
/* Change the analog input PVs for testing purposes */
for(iCount = 0; iCount < MAX_ANALOG_INPUTS; iCount++) {
for(iCount = 0; iCount < Analog_Input_Count(); iCount++) {
Analog_Input_Present_Value_Set(iCount, iSecondsRun * (iCount + 1));
}