Funktion zum prüfen ob neue Daten gesendet werden können
This commit is contained in:
parent
3cd86e1b09
commit
cf18393001
@ -154,6 +154,11 @@ namespace ElektronischeLast
|
||||
this->new_data = true;
|
||||
}
|
||||
|
||||
bool Display::ready_for_data(void)
|
||||
{
|
||||
return (this->current_state == StateIdle);
|
||||
}
|
||||
|
||||
bool Display::timer_elapsed(void)
|
||||
{
|
||||
return (this->timer < systick);
|
||||
|
@ -93,6 +93,7 @@ namespace ElektronischeLast
|
||||
void set_backlight(bool on);
|
||||
void set_cursor(Line_t line, std::uint32_t position);
|
||||
void print(const char* const string);
|
||||
bool ready_for_data(void);
|
||||
private:
|
||||
State_t current_state;
|
||||
State_t next_state;
|
||||
|
Loading…
x
Reference in New Issue
Block a user