Skip to content

Commit

Permalink
fix: merge error + missing blank line
Browse files Browse the repository at this point in the history
Signed-off-by: James Chapman <[email protected]>
  • Loading branch information
james-ctc committed May 17, 2024
1 parent 8023cb6 commit 317b3e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions modules/EvseManager/evse/evse_managerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ void evse_managerImpl::ready() {
if (connector_status_changed) {
se.connector_id = 1;
}

// Add source information (Who initiated this state change)
se.source = mod->charger->get_last_enable_disable_source();
} else if (e == types::evse_manager::SessionEventEnum::ChargingPausedEV or
e == types::evse_manager::SessionEventEnum::ChargingPausedEVSE or
e == types::evse_manager::SessionEventEnum::ChargingStarted or
Expand All @@ -316,9 +319,6 @@ void evse_managerImpl::ready() {
types::evse_manager::AuthorizationEvent authorization_event;
authorization_event.meter_value = mod->get_latest_powermeter_data_billing();
se.authorization_event = authorization_event;

// Add source information (Who initiated this state change)
se.source = mod->charger->get_last_enable_disable_source();
}

se.uuid = session_uuid;
Expand Down
10 changes: 5 additions & 5 deletions types/evse_manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ types:
- MobileApp
- FirmwareUpdate
- CSMS
enable_state:
enable_state:
description: Specifies the state for this entry
type: string
enum:
Expand Down Expand Up @@ -377,7 +377,7 @@ types:
format: date-time
connector_id:
description: >-
Id of the connector of this EVSE.
Id of the connector of this EVSE.
If the connector_id is not specified, its assumed to be 1
type: integer
event:
Expand Down Expand Up @@ -406,13 +406,13 @@ types:
$ref: /evse_manager#/TransactionFinished
charging_state_changed_event:
description: >-
Data for ChargingStateChangedEvent. Shall be set for the following SessionEventEnums:
Data for ChargingStateChangedEvent. Shall be set for the following SessionEventEnums:
ChargingStarted, ChargingResumed, ChargingPausedEV, Charging
type: object
$ref: /evse_manager#/ChargingStateChangedEvent
authorization_event:
description: >-
Data for Authorization event. Shall be set for the following SessionEventEnums:
Data for Authorization event. Shall be set for the following SessionEventEnums:
Authorized, Deauthorized
type: object
$ref: /evse_manager#/AuthorizationEvent
Expand Down Expand Up @@ -591,4 +591,4 @@ types:
type: object
$ref: /evse_manager#/Connector
minItems: 1
maxItems: 128
maxItems: 128

0 comments on commit 317b3e4

Please sign in to comment.