Releases: Scottmg1/Sentry-USB
Releases · Scottmg1/Sentry-USB
v3.8.9-beta.4
drives: type maxRestoreSize as int64 for 32-bit ARM build
The untyped constant 2<<30 (2 GiB) is 2_147_483_648, which overflows
int on armv7 where Go's untyped int defaults to 32-bit. The arm64 build
worked because int is 64-bit there. CI failed on the GOARCH=arm GOARM=7
build with:
drives/store.go:899:26: cannot use maxRestoreSize (untyped int
constant 2147483648) as int value in argument to fmt.Errorf
(overflows)
Typing the constant as int64 fixes the build on armv7 without changing
behavior on arm64. Both call sites already operate on int64
(os.FileInfo.Size and fmt.Errorf with %d).
v3.8.9-beta.5
Fix hard coded repo
v3.6.2.1
v3.8.9-beta.3
server/api/files: type maxZipBytes as int64 so armv7 build compiles 50<<30 (50 GiB) fits in int64 fine but overflows the default int on 32-bit targets (GOARCH=arm). go build on armv7 was failing with cannot use maxZipBytes (untyped int constant 53687091200) as int value in argument to fmt.Errorf (overflows) Declare the constant as int64 explicitly. The bytesWritten comparison was already int64, so behavior is unchanged; only the Errorf arg type changes.
v3.6.2
Fix Pi Zero 2 W UDC driver detection by adding [pi02] config.txt section Stock Bookworm config.txt has dtoverlay=dwc2 inside [cm5] which does not apply to Pi Zero 2 W, causing the UDC check to fail. Also improves the fallback board logic to check the correct config.txt section.
v3.6.1
Fix archiveloop crash loop when /mutable partition is full Prevent dashcam unavailable error caused by archiveloop dying on startup when /mutable has no space. Truncate log file to recover space and make all log writes resilient so they never crash the script under bash -eu.
v3.7.5
fix: lock chime preview fails on mobile Safari Mobile Safari rejects audio.play() when a new Audio() element is created programmatically on each tap, breaking the user-gesture chain. Reuse a single persistent Audio element and update its src instead.
v3.7.4
v3.7.3
fix: resample legacy 48kHz lock chimes to 44100 Hz on download Instead of rejecting WAV files with non-44100 Hz sample rates, ensureMonoWav now resamples them using linear interpolation. This fixes downloads of chimes uploaded before the format enforcement.