mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
CLI cosmetics
This commit is contained in:
parent
f03837f45d
commit
fa174a8279
1 changed files with 13 additions and 8 deletions
|
@ -203,14 +203,19 @@ int cliReadSD(const char ** argv)
|
|||
if (res != RES_OK) {
|
||||
serialPrint("disk_read error: %d, sector: %d(%d)", res, startSector, numberOfSectors);
|
||||
}
|
||||
// dump(buffer, 32);
|
||||
// // calc checksumm
|
||||
// uint32_t summ = 0;
|
||||
// for(int n=0; n<(bufferSectors*512); ++n) {
|
||||
// summ += buffer[n];
|
||||
// }
|
||||
// serialPrint("sector %d(%d) checksumm: %u", startSector, numberOfSectors, summ);
|
||||
|
||||
#if 0
|
||||
for(uint32_t n=0; n<bufferSectors; ++n) {
|
||||
dump(buffer + n*512, 32);
|
||||
}
|
||||
#endif
|
||||
#if 0
|
||||
// calc checksumm
|
||||
uint32_t summ = 0;
|
||||
for(int n=0; n<(bufferSectors*512); ++n) {
|
||||
summ += buffer[n];
|
||||
}
|
||||
serialPrint("sector %d(%d) checksumm: %u", startSector, numberOfSectors, summ);
|
||||
#endif
|
||||
if (numberOfSectors >= bufferSectors) {
|
||||
numberOfSectors -= bufferSectors;
|
||||
startSector += bufferSectors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue