Skip to content

Commit a03e56d

Browse files
obraclaude
andcommitted
Clean up hooks.h friend declarations for USB connection events
- Removed unnecessary Base class friend declaration - Added conditional nRF52840 friend declaration only for nRF52 builds - Uses ARDUINO_NRF52_ADAFRUIT define which is standard for Adafruit nRF52 boards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 48b8ec8 commit a03e56d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/kaleidoscope/hooks.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ class Hooks {
6969
friend class Runtime_;
7070
friend class plugin::FocusSerial;
7171
friend class plugin::LEDControl;
72-
friend class driver::ble::BLEBluefruit; // Allow BLEBluefruit to trigger hooks
72+
friend class driver::ble::BLEBluefruit; // Allow BLEBluefruit to trigger BLE connection hooks
73+
#ifdef ARDUINO_NRF52_ADAFRUIT
7374
template<typename _Props>
74-
friend class driver::mcu::Base; // Allow MCU drivers to trigger USB connection hooks
75+
friend class driver::mcu::nRF52840; // Allow nRF52840 to trigger USB connection hooks
76+
#endif
7577
friend void sketch_exploration::pluginsExploreSketch();
7678

7779
private:

0 commit comments

Comments
 (0)