forbid the include of GwHardware.h in user task headers

This commit is contained in:
andreas 2023-10-28 11:09:48 +02:00
parent a98693a9b1
commit 1ff7c44220
2 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,9 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef _NOGWHARDWAREUT
#error "you are not allowed to include GwHardware.h in your user task header"
#endif
#ifndef _GWHARDWARE_H
#define _GWHARDWARE_H
#define GWSERIAL_TYPE_UNI 1

View File

@ -92,7 +92,9 @@ class GwUserCapability{
userCapabilities[name]=value;
}
};
#define _NOGWHARDWAREUT
#include "GwUserTasks.h"
#undef _NOGWHARDWAREUT
class TaskDataEntry{
public: