view Utils/Export.h @ 3:4ace58a7c03c

Send disconnect command before closing the connection The old BT module transmitted a notification in case a connection were closed which cause the ostc to exit the uart loop. The new one doesn't do this => send disconnect command to avoid waiting in the installation loop till timeout or button press.
author Ideenmodellierer
date Fri, 28 Nov 2025 20:00:02 +0100
parents 0b3630a29ad8
children
line wrap: on
line source

#ifndef EXPORT_H
#define EXPORT_H


#pragma once

// Auf Windows unterscheidet man zwischen DLL-Export (build der DLL) und DLL-Import (Verwendung der DLL)
#if defined(_WIN32)
#if defined(BUILDING_OSTC_COMPANION)
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __declspec(dllimport)
#endif
#else
#define EXPORT
#endif

#endif // EXPORT_H