Skip to content

big flash size though eeprom warning #228

@traxanos

Description

@traxanos

Hi

when i use flash sizes greater than a 16bit int, the eeprom methods though warning. is not ciritcal because when you use flash instead eeprom this methods shouldn't use.

<command-line>: warning: unsigned conversion from 'int' to 'uint16_t' {aka 'short unsigned int'} changes value from '1044480' to '61440' [-Woverflow]
lib\knx\src\knx\platform.cpp:144:32: note: in expansion of macro 'KNX_FLASH_SIZE'
  144 |         return getEepromBuffer(KNX_FLASH_SIZE);```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions