Skip to content

Commit 3893670

Browse files
Fix typos in mcal avr monochrome led implementation
1 parent a82bef2 commit 3893670

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

examples/chapter09_08/src/mcal/avr/mcal_led_monochrome.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212

1313
util::device::led_monochrome& mcal::led::led_monochrome0()
1414
{
15-
using local_led_mponochrome_type =
16-
mcal::led::led_momochrome_board<mcal::reg::portb, UINT8_C(5)>;
15+
using local_led_monochrome_type =
16+
mcal::led::led_monochrome_board<mcal::reg::portb, UINT8_C(5)>;
1717

18-
static local_led_mponochrome_type the_led { };
18+
static local_led_monochrome_type the_led { };
1919

2020
return the_led;
2121
}

examples/chapter09_08/src/mcal/avr/mcal_led_monochrome_board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
{
2020
template<const std::uint8_t port_addr,
2121
const std::uint8_t port_bpos>
22-
class led_momochrome_board final : public util::device::led_monochrome
22+
class led_monochrome_board final : public util::device::led_monochrome
2323
{
2424
public:
25-
led_momochrome_board()
25+
led_monochrome_board()
2626
{
2727
// Set the port pin value to low.
2828
port_pin_type::set_pin_low();
@@ -31,7 +31,7 @@
3131
port_pin_type::set_direction_output();
3232
}
3333

34-
~led_momochrome_board() override = default;
34+
~led_monochrome_board() override = default;
3535

3636
auto my_on() -> void override
3737
{

0 commit comments

Comments
 (0)