Skip to content
This repository was archived by the owner on Dec 6, 2018. It is now read-only.

Commit 93a32c8

Browse files
committed
cs43l22: code style fix
1 parent db46520 commit 93a32c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dev/cs43l22/export/dev/cs43l22.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ err cs43l22< I2c, I2s, Rst_gpio >::set_master_volume(uint8_t volume, channel ch)
563563

564564
if (ch == channel::left) {
565565
rc = register_write(master_a_vol, bitmask);
566-
} else if (ch == channel::right){
566+
} else if (ch == channel::right) {
567567
rc = register_write(master_b_vol, bitmask);
568568
} else { // channel::all
569569
rc = register_write(master_a_vol, bitmask);
@@ -594,7 +594,7 @@ err cs43l22< I2c, I2s, Rst_gpio >::set_headphone_volume(uint8_t volume, channel
594594

595595
if (ch == channel::left) {
596596
rc = register_write(hp_a_vol, bitmask);
597-
} else if (ch == channel::right){
597+
} else if (ch == channel::right) {
598598
rc = register_write(hp_b_vol, bitmask);
599599
} else { // channel::all
600600
rc = register_write(hp_a_vol, bitmask);
@@ -621,7 +621,7 @@ err cs43l22< I2c, I2s, Rst_gpio >::headphone_mute(channel ch)
621621
// Set HP mute bits. See RM for details.
622622
if (ch == channel::left) {
623623
value |= 0x40;
624-
} else if (ch == channel::right){
624+
} else if (ch == channel::right) {
625625
value |= 0x80;
626626
} else { // channel::all
627627
value |= 0xC0;
@@ -646,7 +646,7 @@ err cs43l22< I2c, I2s, Rst_gpio >::headphone_unmute(channel ch)
646646
// Reset HP mute bits. See RM for details.
647647
if (ch == channel::left) {
648648
value &= ~0x40;
649-
} else if (ch == channel::right){
649+
} else if (ch == channel::right) {
650650
value &= ~0x80;
651651
} else { // channel::all
652652
value &= ~0xC0;

0 commit comments

Comments
 (0)