mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Code formatting and comments
Former-commit-id: 4900d45cead5de8a407fd1bf2962bd7efd273dac
This commit is contained in:
parent
fa1157c3ee
commit
979d6e79ad
@ -59,8 +59,8 @@ LedDeviceLightpack::~LedDeviceLightpack()
|
||||
|
||||
if (_libusbContext != nullptr)
|
||||
{
|
||||
libusb_exit(_libusbContext);
|
||||
_libusbContext = nullptr;
|
||||
libusb_exit(_libusbContext);
|
||||
_libusbContext = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -34,9 +34,21 @@ public:
|
||||
///
|
||||
int open();
|
||||
|
||||
int write(const std::vector<ColorRgb>& ledValues);
|
||||
///
|
||||
/// Writes the RGB-Color values to the leds.
|
||||
///
|
||||
/// @param[in] ledValues The RGB-color per led
|
||||
///
|
||||
/// @return Zero on success else negative
|
||||
///
|
||||
virtual int write(const std::vector<ColorRgb>& ledValues);
|
||||
|
||||
int switchOff();
|
||||
///
|
||||
/// Switch the leds off
|
||||
///
|
||||
/// @return Zero on success else negative
|
||||
///
|
||||
virtual int switchOff();
|
||||
|
||||
private:
|
||||
struct Version
|
||||
|
Loading…
Reference in New Issue
Block a user