Code formatting and comments

Former-commit-id: 4900d45cead5de8a407fd1bf2962bd7efd273dac
This commit is contained in:
johan 2013-11-13 23:16:09 +01:00
parent fa1157c3ee
commit 979d6e79ad
2 changed files with 16 additions and 4 deletions

View File

@ -59,8 +59,8 @@ LedDeviceLightpack::~LedDeviceLightpack()
if (_libusbContext != nullptr) if (_libusbContext != nullptr)
{ {
libusb_exit(_libusbContext); libusb_exit(_libusbContext);
_libusbContext = nullptr; _libusbContext = nullptr;
} }
} }

View File

@ -34,9 +34,21 @@ public:
/// ///
int open(); 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: private:
struct Version struct Version