mirror of
https://github.com/Hopiu/rpi-rgb-led-matrix.git
synced 2026-05-05 13:54:43 +00:00
o %lx is better defined for off_t
This commit is contained in:
parent
3af0139d3c
commit
9f15f827b8
3 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ static bool IsRaspberryPi2() {
|
|||
const char *mem_size_key;
|
||||
off_t mem_size;
|
||||
if ((mem_size_key = strstr(buffer, "mem_size=")) != NULL
|
||||
&& (sscanf(mem_size_key + strlen("mem_size="), "%tx", &mem_size) == 1)
|
||||
&& (sscanf(mem_size_key + strlen("mem_size="), "%lx", &mem_size) == 1)
|
||||
&& (mem_size == 0x3F000000)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
0
python/samples/pulsing-colors.py
Normal file → Executable file
0
python/samples/pulsing-colors.py
Normal file → Executable file
0
python/samples/simple-square.py
Normal file → Executable file
0
python/samples/simple-square.py
Normal file → Executable file
Loading…
Reference in a new issue