device: Update cache only if content changed
authorSzymon Janc <szymon.janc@codecoup.pl>
Tue, 17 Nov 2020 15:57:03 +0000 (16:57 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit309e6e3d0c7f38f26cb74735676ba8cb690d763e
treeac73e7f9ac16c390d013e00ef9f8caef4c2b22b3
parent114dc8cde9f8d2543ed0e900d57d03d9cff75812
device: Update cache only if content changed

This fix hammering storage device (eg sdcard) when doing scanning
and LE devices are around.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c