Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomoya-Hagen committed Aug 17, 2024
1 parent 85f637c commit 669b648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Sts1CobcSw/Edu/Edu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,7 @@ auto FlushUartReceiveBuffer() -> void
auto garbageBuffer = std::array<Byte, 32>{}; // NOLINT(*magic-numbers)
while(true)
{
auto readFromResult =
hal::ReadFrom(&uart, Span(&garbageBuffer), flushReceiveBufferTimeout);
auto readFromResult = hal::ReadFrom(&uart, Span(&garbageBuffer), flushReceiveBufferTimeout);
if(readFromResult.has_error())
{
break;
Expand Down
3 changes: 1 addition & 2 deletions Sts1CobcSw/Hal/Uart.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ auto ReadFrom(RODOS::HAL_UART * uart, std::span<T, extent> data) -> void


template<typename T, std::size_t extent>
auto ReadFrom(RODOS::HAL_UART * uart, std::span<T, extent> data, Duration timeout)
-> Result<void>
auto ReadFrom(RODOS::HAL_UART * uart, std::span<T, extent> data, Duration timeout) -> Result<void>
{
auto bytes = std::as_writable_bytes(data);
std::size_t nReadBytes = 0;
Expand Down

0 comments on commit 669b648

Please sign in to comment.