Skip to content

Commit 3ff5546

Browse files
committed
lint
2 parents 45c8ffd + 0745d0b commit 3ff5546

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pca9685.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pca9685::pwm16_channel::pwm16_channel(pca9685* p_pca9685, hal::byte p_channel)
4747

4848
void pca9685::pwm16_channel::driver_duty_cycle(u16 p_duty_cycle)
4949
{
50-
u16 make_12_bit = (p_duty_cycle >> 4) && 0xFFF;
50+
u16 make_12_bit = (p_duty_cycle >> 4) & 0xFFF;
5151
float duty_cycle = static_cast<float>(make_12_bit) / 0xFFF;
5252
m_pca9685->set_channel_duty_cycle(duty_cycle, m_channel);
5353
}
@@ -140,6 +140,7 @@ void pca9685::set_channel_frequency(hal::hertz p_frequency)
140140
configure(original_settings);
141141
m_current_frequency = p_frequency;
142142
}
143+
143144
hertz pca9685::get_frequency()
144145
{
145146
return m_current_frequency;

0 commit comments

Comments
 (0)