Applied @xxxajk's formatting.

This commit is contained in:
Dennis Frett 2021-02-05 10:43:02 +01:00
parent df0a711a3a
commit 17cb44b5a2
3 changed files with 28 additions and 26 deletions

View file

@ -31,11 +31,13 @@
*/
class MiniDSP : public HIDUniversal {
public:
/**
* Constructor for the MiniDSP class.
* @param p Pointer to the USB class instance.
*/
MiniDSP(USB *p) : HIDUniversal(p){};
MiniDSP(USB *p) : HIDUniversal(p) {
};
/**
* Used to check if a MiniDSP 2x4HD is connected.
@ -50,7 +52,9 @@ class MiniDSP : public HIDUniversal {
* initialized.
* @param funcOnInit Function to call.
*/
void attachOnInit(void (*funcOnInit)(void)) { pFuncOnInit = funcOnInit; };
void attachOnInit(void (*funcOnInit)(void)) {
pFuncOnInit = funcOnInit;
};
/**
* Used to call your own function when the volume has changed.
@ -119,6 +123,7 @@ class MiniDSP : public HIDUniversal {
/**@}*/
/** @name USBDeviceConfig implementation */
/**
* Used by the USB core to check what this driver support.
* @param vid The device's VID.

View file

@ -28,14 +28,11 @@ void OnMutedChange(bool isMuted) {
void setup() {
Serial.begin(115200);
#if !defined(__MIPSEL__)
while (!Serial)
; // Wait for serial port to connect - used on Leonardo, Teensy and other
// boards with built-in USB CDC serial connection
while(!Serial); // Wait for serial port to connect - used on Leonardo, Teensy and other boards with built-in USB CDC serial connection
#endif
if(Usb.Init() == -1) {
Serial.print(F("\r\nOSC did not start"));
while (1)
; // Halt
while(1); // Halt
}
Serial.println(F("\r\nMiniDSP 2x4HD Library Started"));