Skip to content

Commit

Permalink
Fixes some minor F´ issues (#2052)
Browse files Browse the repository at this point in the history
* Fixing template component base includes

* Making CAssert match Assert

* Fixing invalid template and missing header include
  • Loading branch information
LeStarch authored and thomas-bc committed Aug 4, 2023
1 parent aa4c60d commit 0fb8196
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
\#include <FpConfig.hpp>
\#include <Fw/Port/InputSerializePort.hpp>
\#include <Fw/Port/OutputSerializePort.hpp>

#if $kind == "passive":
\#include <Fw/Comp/PassiveComponentBase.hpp>
#else:
\#include <Fw/Comp/ActiveComponentBase.hpp>
#end if


#if $has_guarded_ports or $has_parameters
\#include <Os/Mutex.hpp>
#end if
Expand Down
2 changes: 1 addition & 1 deletion Fw/Types/CAssert.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define FILE_NAME_ARG NATIVE_UINT_TYPE
#define FW_CASSERT(cond) ((void)((cond) ? (0) : (CAssert0(ASSERT_FILE_ID, __LINE__))))
#else
#define FILE_NAME_ARG const U8*
#define FILE_NAME_ARG const CHAR*
#define FW_CASSERT(cond) ((void)((cond) ? (0) : (CAssert0((FILE_NAME_ARG)(__FILE__), __LINE__))))
#endif

Expand Down
1 change: 1 addition & 0 deletions Svc/FatalHandler/FatalHandlerComponentLinuxImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <csignal>
#include <Fw/Logger/Logger.hpp>
#include <Svc/FatalHandler/FatalHandlerComponentImpl.hpp>
#include <Os/Task.hpp>
#include <FpConfig.hpp>

namespace Svc {
Expand Down

0 comments on commit 0fb8196

Please sign in to comment.