fix flipped rpm and maxrpm in moza device update signature
This commit is contained in:
parent
0772821f62
commit
88f0f4005f
|
|
@ -28,7 +28,7 @@ unsigned char moza_checksum(unsigned char *data, unsigned short size)
|
|||
return ret % 0x100;
|
||||
}
|
||||
|
||||
int moza_update(SerialDevice* serialdevice, unsigned short maxrpm, unsigned short rpm)
|
||||
int moza_update(SerialDevice* serialdevice, unsigned short rpm, unsigned short maxrpm)
|
||||
{
|
||||
unsigned char bytes[] = MOZA_SERIAL_TEMPLATE;
|
||||
unsigned short size = MOZA_PAYLOAD_SIZE;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#include "../serialdevice.h"
|
||||
#include "../simdevice.h"
|
||||
|
||||
int moza_update(SerialDevice* serialdevice, unsigned short maxrpm, unsigned short rpm);
|
||||
int moza_update(SerialDevice* serialdevice, unsigned short rpm, unsigned short maxrpm);
|
||||
int moza_init(SerialDevice* serialdevice, const char* portdev);
|
||||
unsigned char moza_checksum(unsigned char *data, unsigned short size);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue