mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-12-24 05:19:55 +02:00
bbl.c (main): open /dev/mem with O_SYNC to disable caching
This commit is contained in:
parent
49c76e0f8e
commit
76c0616f6c
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* bbl.c - Produce a "Knight Rider" effect on the LED board
|
||||
*
|
||||
* Written 2010 by Werner Almesberger <werner@openmoko.org>
|
||||
* Written 2010-2011 by Werner Almesberger <werner@openmoko.org>
|
||||
*
|
||||
* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user