X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fkernel%2Fao_data.h;h=d62852efd69cdc707a7dacf8c49e2f898e18514c;hp=8f75ad876b612e3cc1480e1fc9aa9fc8024908bd;hb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;hpb=013e9ccfbe76dc46e8c69ea314950bed83d9a39f diff --git a/src/kernel/ao_data.h b/src/kernel/ao_data.h index 8f75ad87..d62852ef 100644 --- a/src/kernel/ao_data.h +++ b/src/kernel/ao_data.h @@ -3,7 +3,8 @@ * * 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 - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -269,6 +270,10 @@ typedef int16_t accel_t; #define AO_ACCEL_INVERT 4095 +#ifndef AO_MMA655X_INVERT +#error AO_MMA655X_INVERT not defined +#endif + #define ao_data_accel(packet) ((packet)->mma655x) #if AO_MMA655X_INVERT #define ao_data_accel_cook(packet) (AO_ACCEL_INVERT - (packet)->mma655x)