mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 06:55:52 +08:00
Initialise the main wiringPi library at the beginning.
This commit is contained in:
@@ -40,6 +40,8 @@ CHD44780::~CHD44780()
|
|||||||
|
|
||||||
bool CHD44780::open()
|
bool CHD44780::open()
|
||||||
{
|
{
|
||||||
|
wiringPiSetup();
|
||||||
|
|
||||||
m_fd = ::lcdInit(m_rows, m_cols, 4, 11, 10, 0, 1, 2, 3, 0, 0, 0, 0);
|
m_fd = ::lcdInit(m_rows, m_cols, 4, 11, 10, 0, 1, 2, 3, 0, 0, 0, 0);
|
||||||
if (m_fd == -1) {
|
if (m_fd == -1) {
|
||||||
LogError("Unable to open the HD44780");
|
LogError("Unable to open the HD44780");
|
||||||
|
|||||||
Reference in New Issue
Block a user