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