Fix some small mistakes in the previous commit.

This commit is contained in:
Jef Driesen 2009-03-11 13:12:21 +00:00
parent ce705f8244
commit 801f747345
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ reefnet_sensus_device_handshake (device_t *abstract, unsigned char *data, unsign
handshake[2], handshake[3],
handshake[4], handshake[5],
array_uint16_le (handshake + 6),
array_uint16_le (handshake + 8));
array_uint32_le (handshake + 8));
#endif
memcpy (data, handshake + 2, REEFNET_SENSUS_HANDSHAKE_SIZE);

View File

@ -573,7 +573,7 @@ uwatec_memomouse_extract_dives (device_t *abstract, const unsigned char data[],
device_devinfo_t devinfo;
devinfo.model = data[current + 3];
devinfo.firmware = 0;
devinfo.serial = array_uint32_be (data + current);
devinfo.serial = array_uint24_be (data + current);
device_event_emit (abstract, DEVICE_EVENT_DEVINFO, &devinfo);
}