Corrected indentation using the indent tool.
This commit is contained in:
@@ -211,8 +211,8 @@ int main(int argc, char *argv[]) {
|
|||||||
filename_remove_path(argv[0]), filename_remove_path(argv[0]));
|
filename_remove_path(argv[0]), filename_remove_path(argv[0]));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* decode the command line parameters */ cov_data.
|
/* decode the command line parameters */
|
||||||
subscriberProcessIdentifier = strtol(argv[1], NULL, 0);
|
cov_data.subscriberProcessIdentifier = strtol(argv[1], NULL, 0);
|
||||||
cov_data.initiatingDeviceIdentifier = strtol(argv[2], NULL, 0);
|
cov_data.initiatingDeviceIdentifier = strtol(argv[2], NULL, 0);
|
||||||
cov_data.monitoredObjectIdentifier.type = strtol(argv[3], NULL, 0);
|
cov_data.monitoredObjectIdentifier.type = strtol(argv[3], NULL, 0);
|
||||||
cov_data.monitoredObjectIdentifier.instance = strtol(argv[4], NULL, 0);
|
cov_data.monitoredObjectIdentifier.instance = strtol(argv[4], NULL, 0);
|
||||||
|
|||||||
@@ -123,7 +123,8 @@ int Analog_Value_Encode_Property_APDU(
|
|||||||
case PROP_PRESENT_VALUE:
|
case PROP_PRESENT_VALUE:
|
||||||
object_index = Analog_Value_Instance_To_Index(object_instance);
|
object_index = Analog_Value_Instance_To_Index(object_instance);
|
||||||
apdu_len =
|
apdu_len =
|
||||||
encode_application_real(&apdu[0], AV_Present_Value[object_index]);
|
encode_application_real(&apdu[0],
|
||||||
|
AV_Present_Value[object_index]);
|
||||||
break;
|
break;
|
||||||
case PROP_STATUS_FLAGS:
|
case PROP_STATUS_FLAGS:
|
||||||
bitstring_init(&bit_string);
|
bitstring_init(&bit_string);
|
||||||
|
|||||||
@@ -61,8 +61,7 @@ int Encode_Property_APDU(
|
|||||||
if (Device_Valid_Object_Instance_Number(rp_data->object_instance)) {
|
if (Device_Valid_Object_Instance_Number(rp_data->object_instance)) {
|
||||||
apdu_len =
|
apdu_len =
|
||||||
Device_Encode_Property_APDU(&apdu[0],
|
Device_Encode_Property_APDU(&apdu[0],
|
||||||
rp_data->object_property,
|
rp_data->object_property, rp_data->array_index,
|
||||||
rp_data->array_index,
|
|
||||||
error_class, error_code);
|
error_class, error_code);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -70,10 +69,8 @@ int Encode_Property_APDU(
|
|||||||
if (Analog_Value_Valid_Instance(rp_data->object_instance)) {
|
if (Analog_Value_Valid_Instance(rp_data->object_instance)) {
|
||||||
apdu_len =
|
apdu_len =
|
||||||
Analog_Value_Encode_Property_APDU(&apdu[0],
|
Analog_Value_Encode_Property_APDU(&apdu[0],
|
||||||
rp_data->object_instance,
|
rp_data->object_instance, rp_data->object_property,
|
||||||
rp_data->object_property,
|
rp_data->array_index, error_class, error_code);
|
||||||
rp_data->array_index,
|
|
||||||
error_class, error_code);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ static void input_switch_read(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Analog_Value_Task(void)
|
static void Analog_Value_Task(
|
||||||
|
void)
|
||||||
{
|
{
|
||||||
extern float AV_Present_Value[MAX_ANALOG_VALUES];
|
extern float AV_Present_Value[MAX_ANALOG_VALUES];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user