Fixed bug in tetris.

This commit is contained in:
Serge Vakulenko
2015-05-15 22:59:16 -07:00
parent 23f426ded5
commit c054a40805

View File

@@ -223,6 +223,13 @@ void gpanel_init()
gpanel_row = 0; gpanel_row = 0;
gpanel_col = 0; gpanel_col = 0;
/* Open GPIO driver. */
gpio = open("/dev/porta", 0);
if (gpio < 0) {
perror("/dev/porta");
exit(-1);
}
/* /*
* Set pins as outputs. * Set pins as outputs.
*/ */