Skip to content

Commit

Permalink
[coco] add bus led.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Feb 24, 2024
1 parent 95cf188 commit d1a3698
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/bus/drivewire/drivewire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ void systemBus::_drivewire_process_cmd()
{
uint8_t c = fnUartBUS.read();

fnLedManager.set(eLed::LED_BUS, true);

switch (c)
{
case OP_NOP:
Expand Down Expand Up @@ -346,6 +348,8 @@ void systemBus::_drivewire_process_cmd()
op_unhandled(c);
break;
}

fnLedManager.set(eLed::LED_BUS, false);
}

// Look to see if we have any waiting messages and process them accordingly
Expand Down

0 comments on commit d1a3698

Please sign in to comment.