mirror of https://github.com/arendst/Tasmota.git
SM2335 - Be more consistent with code formatting.
This commit is contained in:
parent
df9c3a733e
commit
5741c06acd
|
@ -115,8 +115,7 @@ bool SM2335SetChannels(void) {
|
|||
if (cur_col_10[0] == 0 && cur_col_10[1] == 0 && cur_col_10[2] == 0 && cur_col_10[3] == 0 && cur_col_10[4] == 0) {
|
||||
SM2335Start(SM2335_ADDR_STANDBY);
|
||||
// Clear all remaining data. This clears out Current, Red, Green, Blue, Cold White, Warm White.
|
||||
for (int i = 0; i < 11; i++)
|
||||
{
|
||||
for (int i = 0; i < 11; i++) {
|
||||
SM2335Write(0);
|
||||
}
|
||||
SM2335Stop();
|
||||
|
@ -128,8 +127,7 @@ bool SM2335SetChannels(void) {
|
|||
// Set the current defined in ModuleSelected.
|
||||
SM2335Write(Sm2335.current);
|
||||
// Set RGB and CW grayscale.
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
for (int i = 0; i < 5; i++) {
|
||||
SM2335Write((uint8_t)(cur_col_10[i] >> 8));
|
||||
SM2335Write((uint8_t)(cur_col_10[i] & 0xFF));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue