Skip to content

ds28e05 driver does not write correctly to memory multiplications of 16B #89

@coopper5120

Description

@coopper5120

When testing communication with ds28e05, I found following bug:

REPRODUCTION PROCEDURE:
Set addres to write at 0x00. Write 32B of data.

RESULT:
Only 16B is actually written.

EXPECTED RESULT:
Full 32B is written.

PROPOSITION OF SOLUTION:
Function ds28e05WriteMemory():
This:
if ((length - wBytes) >= (BYTES_PER_PAGE))
instead of this:
if ((length - wBytes) > (BYTES_PER_PAGE))

This soultion was tested with writing 32B into memory.
All bytes was actually written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions