corrected compilation errors

This commit is contained in:
Amy G. Bowersox 2019-12-01 15:45:46 -07:00
parent 2f6118d436
commit b550994eff
3 changed files with 7 additions and 7 deletions

View File

@ -66,13 +66,13 @@ int Gpio_read_buttons(void)
int rc = 0;
if (bcm2835_gpio_lev(GLINE_BUTTON1) == LOW)
rc |= STATE_BUTTON1;
rc |= GRB_STATE_BUTTON1;
if (bcm2835_gpio_lev(GLINE_BUTTON2) == LOW)
rc |= STATE_BUTTON2;
rc |= GRB_STATE_BUTTON2;
if (bcm2835_gpio_lev(GLINE_BUTTON3) == LOW)
rc |= STATE_BUTTON3;
rc |= GRB_STATE_BUTTON3;
if (bcm2835_gpio_lev(GLINE_BUTTON4) == LOW)
rc |= STATE_BUTTON4;
rc |= GRB_STATE_BUTTON4;
return rc;
}

View File

@ -34,7 +34,7 @@ int main(int argc, char *argv[])
if (msg.attrs[0] == 1)
{
Log(LINFO, "Backlight ON.");
Gpio_set_backlight(GRB_BACKLIGHT_MAX);
Gpio_set_backlight(GSB_BACKLIGHT_MAX);
}
if (msg.attrs[0] == 2)
{

View File

@ -16,10 +16,10 @@ TIMESTAMP Time_since_epoch(void)
TIMESTAMP Time_since_start(void)
{
return TimeSinceEpoch() - start_timestamp;
return Time_since_epoch() - start_timestamp;
}
void Time_init(void)
{
start_timestamp = TimeSinceEpoch();
start_timestamp = Time_since_epoch();
}