Release Vulpes OS 2.7-preview.22
This commit is contained in:
parent
200d1fb235
commit
a138f97877
294 changed files with 515786 additions and 187 deletions
9
tundra/probes/beatles-hall.h
Normal file
9
tundra/probes/beatles-hall.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* SPDX-License-Identifier: MPL-2.0 */
|
||||
#ifndef VULPES_BEATLES_HALL_H
|
||||
#define VULPES_BEATLES_HALL_H
|
||||
/* Nokia hall_status reports the magnet: 1 = closed, 0 = open.
|
||||
* Keep this conversion shared by panel power and keypad handling. */
|
||||
static inline int beatles_hall_open(int raw) {
|
||||
return raw == 0 ? 1 : raw == 1 ? 0 : -1;
|
||||
}
|
||||
#endif
|
||||
Loading…
Reference in a new issue