minor fixes

This commit is contained in:
2026-02-23 00:46:58 +01:00
parent 5bbfda2330
commit dd18f74e65

View File

@@ -114,7 +114,7 @@ func (s *DeviceState) handleReadCommand(cmd string) string {
if s.GetNCParam() { if s.GetNCParam() {
value = 1 value = 1
} }
return fmt.Sprintf("PARAM: WNC=%d", value) return fmt.Sprintf("PARAM: NC=%d", value)
} }
// Extract parameter ID // Extract parameter ID
@@ -151,8 +151,8 @@ func isValidParamID(id int) bool {
// isReadableParamID checks if the parameter ID is readable // isReadableParamID checks if the parameter ID is readable
func isReadableParamID(id int) bool { func isReadableParamID(id int) bool {
// According to docs.toon, only R1, R2, R20 are documented // All writable parameters are also readable
readableIDs := []int{1, 2, 20} readableIDs := []int{1, 2, 3, 4, 11, 12, 20}
for _, v := range readableIDs { for _, v := range readableIDs {
if id == v { if id == v {
return true return true