diff --git a/bbl/bbl.c b/bbl/bbl.c index eb061f9..220e447 100644 --- a/bbl/bbl.c +++ b/bbl/bbl.c @@ -1,7 +1,7 @@ /* * bbl.c - Produce a "Knight Rider" effect on the LED board * - * Written 2010 by Werner Almesberger + * Written 2010-2011 by Werner Almesberger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -98,7 +98,7 @@ int main(int argc, char **argv) { int fd, i; - fd = open("/dev/mem", O_RDWR); + fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd < 0) { perror("/dev/mem"); exit(1);