Fix miscellaneous bugs identified by Claude

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Allen Hill
2026-07-08 13:15:59 -07:00
parent cd11501074
commit 2ed6066609
10 changed files with 133 additions and 135 deletions
+4 -1
View File
@@ -57,6 +57,9 @@ void CDChanger::init() {
}
void CDChanger::handle(const Frame *in, Frame *out) {
if (in->length < 4)
return; // [Currently known] valid CDChanger frames have at least 4 bytes
const uint8_t *data = &in->data[1];
const auto from = static_cast<Device>(*data++);
/* const auto to = */ data++;
@@ -184,7 +187,7 @@ void CDChanger::handle(const Frame *in, Frame *out) {
case Track_Fast_Forward: {
state |= SEEKING;
secs += TIME_SKIP;
if (secs > 60) {
if (secs > 59) {
secs -= 60;
++mins;
}