dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
696 stars 160 forks source link

fix(hid_usage_simulation.h): invalid include guard #132

Closed JarvisCraft closed 3 months ago

JarvisCraft commented 8 months ago

Description

This fixes the invalid include guard in inc/hid_usage_simulation.h.

Background

This was discovered by clang when building bindings for flipperzero-rs.

clang diag: /app/firmware/build/f7-firmware-D/sdk_headers//f7_sdk/lib/libusb_stm32/inc/hid_usage_simulation.h:16:9: warning: '_USB_HID_USAGE_SIMUL_H_' is used as a header guard here, followed by #define of a different macro [-Wheader-guard]