diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-12-04 16:53:23 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-12-04 16:53:23 +0300 |
commit | 5c342f14ab791a5cd1714324a15924d824cdb8eb (patch) | |
tree | a0b97292d173d86dd74cf4da30179a6c22ccee68 /src/bossa | |
parent | da2fb45945330a45d34a76d73ab78bd840f2d659 (diff) |
Tidied up FileStore, added CRC16 class
Diffstat (limited to 'src/bossa')
-rw-r--r-- | src/bossa/Flasher.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/bossa/Flasher.cpp b/src/bossa/Flasher.cpp index fd192bf0..011849b9 100644 --- a/src/bossa/Flasher.cpp +++ b/src/bossa/Flasher.cpp @@ -35,8 +35,7 @@ # include "Linux/LinuxInterface.h" #endif -void -Flasher::erase(uint32_t foffset) THROWS(GCodeException) +void Flasher::erase(uint32_t foffset) THROWS(GCodeException) { #if ORIGINAL_BOSSA_CODE _observer.onStatus("Erase flash\n"); @@ -45,9 +44,7 @@ Flasher::erase(uint32_t foffset) THROWS(GCodeException) _flash->eraseAuto(false); } - -bool -Flasher::write(const char* filename, uint32_t& foffset) THROWS(GCodeException) +bool Flasher::write(const char* filename, uint32_t& foffset) THROWS(GCodeException) { uint32_t pageSize = _flash->pageSize(); uint32_t numPages; @@ -114,8 +111,7 @@ Flasher::write(const char* filename, uint32_t& foffset) THROWS(GCodeException) return true; } -bool -Flasher::verify(const char* filename, uint32_t& pageErrors, uint32_t& totalErrors, uint32_t& foffset) THROWS(GCodeException) +bool Flasher::verify(const char* filename, uint32_t& pageErrors, uint32_t& totalErrors, uint32_t& foffset) THROWS(GCodeException) { uint32_t pageSize = _flash->pageSize(); uint8_t bufferA[pageSize]; @@ -201,8 +197,7 @@ Flasher::verify(const char* filename, uint32_t& pageErrors, uint32_t& totalError return true; } -void -Flasher::lock(/* string& regionArg, */ bool enable) THROWS(GCodeException) +void Flasher::lock(/* string& regionArg, */ bool enable) THROWS(GCodeException) { #if ORIGINAL_BOSSA_CODE if (regionArg.empty()) @@ -235,3 +230,5 @@ Flasher::lock(/* string& regionArg, */ bool enable) THROWS(GCodeException) } #endif } + +// End |