Skip to content

Conversation

@james-ctc
Copy link
Member

Describe your changes

Updates to composite schedule to address issues identified in libocpp issue 1169

An incorrect composite schedule was generated when the duration was 0. The fallback vales were used rather than values from the active schedule.

Additional check added to ensure start time is not greater than end time.

Issue ticket number and link

EVerest/libocpp#1169

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

An incorrect composite schedule was generated when the duration was 0.
The fallback vales were used rather than values from the active schedule.

Additional check added to ensure start time is not greater than end time.

Signed-off-by: James Chapman <[email protected]>
Pietfried
Pietfried previously approved these changes Jan 16, 2026
DateTime current = now;

while (current < end) {
// run calculation at least once especially where current < end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// run calculation at least once especially where current < end
// run calculation at least once, especially when current >= end

DateTime current = now;

while (current < end) {
// run calculation at least once especially where current < end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// run calculation at least once especially where current < end
// run calculation at least once, especially when current >= end

@james-ctc james-ctc added this pull request to the merge queue Jan 16, 2026
Merged via the queue into main with commit 1801c65 Jan 16, 2026
12 checks passed
@james-ctc james-ctc deleted the fix/libocpp-issue-1169-composite-schedule branch January 16, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants