forked from Imagelibrary/rtems
mouse_parser.c: Fix warning by properly checking return code
This commit is contained in:
@@ -299,7 +299,7 @@ void mouse_parser_enqueue( unsigned char *buffer, size_t size )
|
|||||||
BUTTON bptr;
|
BUTTON bptr;
|
||||||
|
|
||||||
while( size-- ) {
|
while( size-- ) {
|
||||||
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) ) {
|
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) == 1 ) {
|
||||||
struct MW_UID_MESSAGE m;
|
struct MW_UID_MESSAGE m;
|
||||||
|
|
||||||
m.type = MV_UID_REL_POS;
|
m.type = MV_UID_REL_POS;
|
||||||
|
|||||||
Reference in New Issue
Block a user