Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Jan 20, 2021
1 parent 33c43f8 commit 34245d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hal/network/ncp/wifi/platform_ncp_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ int invalidateWifiNcpVersionCache() {
}

int getWifiNcpFirmwareVersion(uint16_t* ncpVersion) {
uint16_t version = 0;
#if HAL_PLATFORM_NCP_COUNT > 1
using namespace particle::services;
uint16_t version = 0;
int res = SystemCache::instance().get(SystemCacheKey::WIFI_NCP_FIRMWARE_VERSION, &version, sizeof(version));
if (res == sizeof(version)) {
LOG(TRACE, "Cached ESP32 NCP firmware version: %d", (int)version);
Expand Down
6 changes: 6 additions & 0 deletions services/src/system_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/

#include "hal_platform.h"

#if HAL_PLATFORM_FILESYSTEM

#include "system_cache.h"
#include "enumclass.h"
#include "check.h"
Expand Down Expand Up @@ -45,3 +49,5 @@ int SystemCache::del(SystemCacheKey key) {
}

} } // particle::services

#endif // HAL_PLATFORM_FILESYSTEM

0 comments on commit 34245d0

Please sign in to comment.