RGB led: Code style and comment on bus speed

This commit is contained in:
Lorenz Meier 2015-02-13 09:10:32 +01:00
parent 113b0ab51b
commit f0ad98c92c
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,6 @@
/****************************************************************************
*
* Copyright (C) 2012, 2013 PX4 Development Team. All rights reserved.
* Author: Julian Oes <joes@student.ethz.ch>
* Anton Babushkin <anton.babushkin@me.com>
* Copyright (c) 2012-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -38,6 +36,8 @@
*
* Driver for the onboard RGB LED controller (TCA62724FMG) connected via I2C.
*
* @author Julian Oes <julian@px4.io>
* @author Anton Babushkin <anton.babushkin@me.com>
*/
#include <nuttx/config.h>
@ -129,7 +129,7 @@ void rgbled_usage();
extern "C" __EXPORT int rgbled_main(int argc, char *argv[]);
RGBLED::RGBLED(int bus, int rgbled) :
I2C("rgbled", RGBLED0_DEVICE_PATH, bus, rgbled, 100000),
I2C("rgbled", RGBLED0_DEVICE_PATH, bus, rgbled, 100000 /* maximum speed supported */),
_mode(RGBLED_MODE_OFF),
_r(0),
_g(0),