mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
FirmwareCache: naming fixes
This commit is contained in:
parent
e432d8656d
commit
b18a98299b
2 changed files with 4 additions and 4 deletions
|
@ -172,7 +172,7 @@ let FirmwareCache = (function () {
|
||||||
/**
|
/**
|
||||||
* Remove all cached data
|
* Remove all cached data
|
||||||
*/
|
*/
|
||||||
function destroy() {
|
function invalidate() {
|
||||||
if (!journalLoaded) {
|
if (!journalLoaded) {
|
||||||
console.warn("Cache journal not yet loaded");
|
console.warn("Cache journal not yet loaded");
|
||||||
return undefined;
|
return undefined;
|
||||||
|
@ -240,10 +240,10 @@ let FirmwareCache = (function () {
|
||||||
load: () => {
|
load: () => {
|
||||||
JournalStorage.load(onEntriesLoaded);
|
JournalStorage.load(onEntriesLoaded);
|
||||||
},
|
},
|
||||||
flush: () => {
|
unload: () => {
|
||||||
JournalStorage.persist(journal.toJSON());
|
JournalStorage.persist(journal.toJSON());
|
||||||
journal.clear();
|
journal.clear();
|
||||||
},
|
},
|
||||||
destroy: destroy,
|
invalidate: invalidate,
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -545,7 +545,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
||||||
|
|
||||||
TABS.firmware_flasher.cleanup = function (callback) {
|
TABS.firmware_flasher.cleanup = function (callback) {
|
||||||
PortHandler.flush_callbacks();
|
PortHandler.flush_callbacks();
|
||||||
FirmwareCache.flush();
|
FirmwareCache.unload();
|
||||||
|
|
||||||
// unbind "global" events
|
// unbind "global" events
|
||||||
$(document).unbind('keypress');
|
$(document).unbind('keypress');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue