Skip to content

Commit 79ece1e

Browse files
committed
backend: Set HAT EEPROM product_id and product_ver
Fixes fairscope/PlanktoScope3#294
1 parent 1611123 commit 79ece1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/src/factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ await procedure("factory/init", async () => {
1616
if (eeprom?.custom_data?.eeprom_version !== 0) {
1717
return {
1818
product_uuid: crypto.randomUUID(),
19-
product_id: "0x0000", // TODO
20-
product_ver: "0x0000", //TODO
19+
product_id: "0x5053", // PS in hexadecimal
20+
product_ver: "0x0001", // first revision of the PlanktoScope HAT 0x5053
2121
vendor: "FairScope",
2222
product: "PlanktoScope HAT v3",
2323
current_supply: 0,

0 commit comments

Comments
 (0)