Skip to content

Commit 9431b24

Browse files
committed
Made EvseTargetsEntryType -> evseTargetsEntryType (since it is a variable not a type)
1 parent 8735c45 commit 9431b24

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/energy-management-app/energy-management-common/src/EnergyEvseTargetsStore.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ CHIP_ERROR EvseTargetsDelegate::LoadTargets()
9292
uint16_t chargingTargetSchedulesIdx = 0;
9393
while ((err = reader.Next(TLV::kTLVType_Structure, TLV::AnonymousTag())) == CHIP_NO_ERROR)
9494
{
95-
TLV::TLVType EvseTargetEntryType;
95+
TLV::TLVType evseTargetEntryType;
9696

97-
ReturnErrorOnFailure(reader.EnterContainer(EvseTargetEntryType));
97+
ReturnErrorOnFailure(reader.EnterContainer(evseTargetEntryType));
9898

9999
// DayOfWeek bitmap
100100
ReturnErrorOnFailure(reader.Next(TLV::ContextTag(TargetEntryTag::kDayOfWeek)));
@@ -169,7 +169,7 @@ CHIP_ERROR EvseTargetsDelegate::LoadTargets()
169169
}
170170

171171
ReturnErrorOnFailure(reader.ExitContainer(chargingTargetsListType));
172-
ReturnErrorOnFailure(reader.ExitContainer(EvseTargetEntryType));
172+
ReturnErrorOnFailure(reader.ExitContainer(evseTargetEntryType));
173173

174174
// Allocate an array for the chargingTargets loaded for this schedule and copy the chargingTargets into that array.
175175
// The allocated array will be pointed to in the List below.
@@ -377,8 +377,8 @@ EvseTargetsDelegate::SaveTargets(DataModel::List<const Structs::ChargingTargetSc
377377
ChipLogProgress(AppServer, "SaveTargets: DayOfWeekForSequence = 0x%02x",
378378
chargingTargetSchedule.dayOfWeekForSequence.GetField(static_cast<TargetDayOfWeekBitmap>(0x7F)));
379379

380-
TLV::TLVType EvseTargetEntryType;
381-
ReturnErrorOnFailure(writer.StartContainer(TLV::AnonymousTag(), TLV::kTLVType_Structure, EvseTargetEntryType));
380+
TLV::TLVType evseTargetEntryType;
381+
ReturnErrorOnFailure(writer.StartContainer(TLV::AnonymousTag(), TLV::kTLVType_Structure, evseTargetEntryType));
382382
ReturnErrorOnFailure(writer.Put(TLV::ContextTag(TargetEntryTag::kDayOfWeek), chargingTargetSchedule.dayOfWeekForSequence));
383383

384384
TLV::TLVType chargingTargetsListType;
@@ -404,7 +404,7 @@ EvseTargetsDelegate::SaveTargets(DataModel::List<const Structs::ChargingTargetSc
404404
ReturnErrorOnFailure(writer.EndContainer(chargingTargetsStructType));
405405
}
406406
ReturnErrorOnFailure(writer.EndContainer(chargingTargetsListType));
407-
ReturnErrorOnFailure(writer.EndContainer(EvseTargetEntryType));
407+
ReturnErrorOnFailure(writer.EndContainer(evseTargetEntryType));
408408
}
409409

410410
ReturnErrorOnFailure(writer.EndContainer(arrayType));

0 commit comments

Comments
 (0)