void cmd_accel(int argc, char** argv) { int x = accel_get_x(); int y = accel_get_y(); int z = accel_get_z(); bufferPrintf("x: %d, y: %d, z: %d\r\n", x, y, z); }
static error_t cmd_accel(int argc, char** argv) { int x = accel_get_x(); int y = accel_get_y(); int z = accel_get_z(); bufferPrintf("x: %d, y: %d, z: %d\r\n", x, y, z); return SUCCESS; }