From f42d8a8898151743068fe60ba18269aa2eb221b6 Mon Sep 17 00:00:00 2001 From: barthess Date: Sun, 14 Sep 2014 08:07:55 +0000 Subject: [CPP wrappers] MailBox minor code cleanup. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7274 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/cpp_wrappers/ch.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'os/various/cpp_wrappers/ch.hpp') diff --git a/os/various/cpp_wrappers/ch.hpp b/os/various/cpp_wrappers/ch.hpp index 2c2a82fb0..6d2584a1d 100644 --- a/os/various/cpp_wrappers/ch.hpp +++ b/os/various/cpp_wrappers/ch.hpp @@ -1867,8 +1867,7 @@ namespace chibios_rt { * @init */ MailboxBase(msg_t *buf, cnt_t n) { - /* static_assert(sizeof(msg_t) >= sizeof(T), - "You can not pass objects bigger than msg_t"); */ + chMBObjectInit(&mb, buf, n); } -- cgit v1.2.3