Double usage of m_fs

I noticed that nrf_dfu_flash.c aswell as fds.c both declare m_fs, which collides on compilation.

What is the preferred way to use both modules at the same time, without having the variable name collide?

  • Hi,

    I have not come across this problem before, as nrf_dfu_flash.c are designed for use in a bootloader, while fds.c are designed for use in an application. So there is normally no conflict.

    The first thing I would like to ask, is why (and in which type of binary) you are combinding them and if that is needed? If you really need to combine these modules in a single binary, you could re-name m_fs in nrf_dfu_flash.c.

Related