Skip to content

Commit bd31146

Browse files
committed
spelling
1 parent 99033ee commit bd31146

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

goleds.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ func (a *App) initialise(cfile string, realp bool, sensp bool) error {
315315
}
316316
}
317317

318-
// *FUTURE* init more types of ledproducers if needed/wanted
318+
// *FUTURE* initialize more types of ledproducers if needed/wanted
319319

320320
a.shutdownWg.Add(2)
321321

@@ -385,7 +385,7 @@ func (a *App) combineAndUpdateDisplay(ledreader *u.AtomicMapEvent[p.LedProducer]
385385
}
386386
ledsToSend := ledBufferPool.Get().([]p.Led)
387387
p.CombineLeds(allLedRanges, ledsToSend)
388-
newLedshash := hashLeds(ledsToSend)
388+
newLedshash := hashLEDs(ledsToSend)
389389
if newLedshash != oldLedsHash {
390390
a.platform.SetLeds(ledsToSend)
391391
} else {
@@ -540,9 +540,9 @@ func (a *App) stateManager() {
540540
}
541541
}
542542

543-
// hashLeds computes a hash for the given LED state array.
543+
// hashLEDs computes a hash for the given LED state array.
544544
// This is used to detect changes in the LED state and avoid unnecessary updates.
545-
func hashLeds(leds []p.Led) uint64 {
545+
func hashLEDs(leds []p.Led) uint64 {
546546
h := fnv.New64a() // FNV-1a is a fast, non-cryptographic hash function.
547547
for _, led := range leds {
548548
h.Write([]byte{byte(led.Red), byte(led.Green), byte(led.Blue)})

0 commit comments

Comments
 (0)