Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dhchandw committed Oct 15, 2024
1 parent 9916594 commit 60e2a80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src-electron/zcl/zcl-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,13 @@ async function qualifyZclFile(
packageId: parentPackageId == null ? packageId : parentPackageId
}
} else if (pkg.crc != actualCrc) {
// This is executed if CRC is found in the database but doesn't match the actual CRC.
env.logDebug(
`CRC mismatch for file ${pkg.path}, (${pkg.crc} vs ${actualCrc}) package id ${pkg.id}, parsing.`
)
await queryPackage.updatePackageIsInSync(db, pkg.id, false) // Mark the older package as out of sync

// creating a new package id, crc combination so older sessions using the package from the same path aren't affected
let packageId = await queryPackage.insertPathCrc(
db,
filePath,
Expand Down

0 comments on commit 60e2a80

Please sign in to comment.