Skip to content

Commit

Permalink
Fix namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilchmela committed Aug 29, 2024
1 parent 020386e commit 4b9382b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sts1CobcSw/Periphery/FlashMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ auto SetDoEraseSector(void (*doEraseSectorFunction)(std::uint32_t address)) -> v
}


auto SetDoWaitWhileBusyFunction(Result<void> (*doWaitWhileBusy)(std::int64_t timeout)) -> void
auto SetDoWaitWhileBusyFunction(Result<void> (*doWaitWhileBusyFunction)(std::int64_t timeout)) -> void
{
doWaitWhileBusy = doWaitWhileBusyFunction;
}
Expand Down Expand Up @@ -147,13 +147,13 @@ auto DoInitialize() -> void

auto DoReadJedecId() -> JedecId
{
return JedecId;
return JedecId{};
}


auto DoReadStatusRegister(std::int8_t registerNo) -> Byte
{
return 0x0000;
return 0x00_0;
}


Expand Down
4 changes: 2 additions & 2 deletions Sts1CobcSw/Periphery/FlashMock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ auto SetDoProgramPage(void (*doProgramPageFunction)(std::uint32_t address, PageS
auto SetDoEraseSector(void (*doEraseSectorFunction)(std::uint32_t address)) -> void;
auto SetDoWaitWhileBusyFunction(Result<void> (*doWaitWhileBusy)(std::int64_t timeout)) -> void;
auto SetDoActualBaudRate(std::int32_t (*doActualBaudRateFunction)()) -> void;
}

namespace empty
{
Expand All @@ -75,4 +74,5 @@ auto DoProgramPage(std::uint32_t address, PageSpan data) -> void;
auto DoEraseSector(std::uint32_t address) -> void;
auto DoWaitWhileBusy(std::int64_t timeout) -> Result<void>;
auto DoActualBaudRate() -> std::int32_t;
}
}
}

0 comments on commit 4b9382b

Please sign in to comment.