removed the extra 2 spaces
This commit is contained in:
parent
1580d634ec
commit
f999521721
16
src/evcsnm.c
16
src/evcsnm.c
|
|
@ -81,25 +81,17 @@ static int mk_evcsnm(uint8_t *evcsnm_oer, uint32_t *evcsnm_len)
|
||||||
cs_elem0->typeOfReceptacle.bits_unused = 0;
|
cs_elem0->typeOfReceptacle.bits_unused = 0;
|
||||||
cs_elem0->typeOfReceptacle.buf[0] = 0xff;
|
cs_elem0->typeOfReceptacle.buf[0] = 0xff;
|
||||||
cs_elem0->parkingPlacesData = calloc(1, sizeof(struct ParkingPlacesData));
|
cs_elem0->parkingPlacesData = calloc(1, sizeof(struct ParkingPlacesData));
|
||||||
cs_elem0->parkingPlacesData->list.array = calloc(4, sizeof(void *));
|
cs_elem0->parkingPlacesData->list.array = calloc(2, sizeof(void *));
|
||||||
cs_elem0->parkingPlacesData->list.count = 4;
|
cs_elem0->parkingPlacesData->list.count = 2;
|
||||||
cs_elem0->parkingPlacesData->list.size = sizeof(void *) * 4;
|
cs_elem0->parkingPlacesData->list.size = sizeof(void *) * 2;
|
||||||
// As requested onnly 2 parking places are available
|
// As requested onnly 2 parking places are available
|
||||||
for (int parckingPlaceIndex = 0; parckingPlaceIndex < 4; parckingPlaceIndex++)
|
for (int parckingPlaceIndex = 0; parckingPlaceIndex < 2; parckingPlaceIndex++)
|
||||||
{
|
{
|
||||||
cs_elem0->parkingPlacesData->list.array[parckingPlaceIndex] = calloc(1, sizeof(struct SpotAvailability));
|
cs_elem0->parkingPlacesData->list.array[parckingPlaceIndex] = calloc(1, sizeof(struct SpotAvailability));
|
||||||
struct SpotAvailability *spot = cs_elem0->parkingPlacesData->list.array[parckingPlaceIndex];
|
struct SpotAvailability *spot = cs_elem0->parkingPlacesData->list.array[parckingPlaceIndex];
|
||||||
if (parckingPlaceIndex < 2)
|
|
||||||
{
|
|
||||||
spot->maxWaitingTimeMinutes = 0;
|
spot->maxWaitingTimeMinutes = 0;
|
||||||
spot->blocking = 1;
|
spot->blocking = 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
spot->maxWaitingTimeMinutes = 10;
|
|
||||||
spot->blocking = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
itss_space_unlock(epv);
|
itss_space_unlock(epv);
|
||||||
// if (facilities.station_type == StationType_roadSideUnit)
|
// if (facilities.station_type == StationType_roadSideUnit)
|
||||||
//{
|
//{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue