Skip to content

Commit

Permalink
Add backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tennessee-google committed Dec 14, 2023
1 parent 5ece86a commit dd1c12a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/support/TimeUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,10 @@ inline uint64_t SecondsToMilliseconds(uint32_t seconds)
return (seconds * kMillisecondsPerSecond);
}

// For backwards-compatibility of public API.
[[deprecated("Use SecondsToMilliseconds")]] inline uint64_t secondsToMilliseconds(uint32_t seconds)
{
return SecondsToMilliseconds(seconds);
}

} // namespace chip

0 comments on commit dd1c12a

Please sign in to comment.