#include <kern/proc.h>
#endif
-#warning this file was change, but is untest!
+#warning FIXME:This file was change, but is untest!
/**
* Wait until flash memory is ready.
KFileFlash25 *fd = KFILEFLASH25(_fd);
- ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
+ ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
//kprintf("Reading at addr[%lu], size[%d]\n", fd->seek_pos, size);
KFileFlash25 *fd = KFILEFLASH25(_fd);
- ASSERT(fd->fd.seek_pos + size <= fd->fd.size);
+ ASSERT(fd->fd.seek_pos + (kfile_size_t)size <= fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
//motor->rampValue = 0;
//motor->rampClock = motor->rampValue = motor->ramp->clocksMaxWL;
- else if (distance <= motor->rampStep)
+ else if (distance <= (uint16_t)motor->rampStep)
stepper_decel(motor);
// check whether the velocity must be changed