Saved work
This commit is contained in:
@@ -12,6 +12,7 @@ using namespace bsp;
|
||||
/**** Public function definitions ****/
|
||||
bsp::DigitalOut::DigitalOut(void)
|
||||
{
|
||||
this->is_init_done = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -22,6 +23,8 @@ bsp::DigitalOut::~DigitalOut(void)
|
||||
|
||||
void bsp::DigitalOut::write(int8_t level)
|
||||
{
|
||||
if(this->is_init_done==0) return;
|
||||
|
||||
if(this->is_inverted)
|
||||
{
|
||||
if(level==0) level = 1;
|
||||
|
||||
Reference in New Issue
Block a user