     writeTypeInfo: (buffer, parameter) ->
       # ParamMetaData (TYPE_INFO)
       buffer.writeUInt8 @id
-      buffer.writeUInt8 parameter.scale
+      buffer.writeUInt8 @resolveScale(parameter)
       
     writeParameterData: (buffer, parameter) ->
       # ParamLenData (TYPE_VARBYTE)

    writeTypeInfo: (buffer, parameter) ->
      # ParamMetaData (TYPE_INFO)
      buffer.writeUInt8 @id
      buffer.writeInt32LE parameter.length
    writeParameterData: (buffer, parameter) ->
      # ParamLenData (TYPE_VARBYTE)
      if parameter.value?
        buffer.writeInt32LE parameter.length
        buffer.writeBuffer parameter.value
      else
        buffer.writeInt32LE parameter.length
      
  0x23:
    type: 'TEXT'

    writeTypeInfo: (buffer, parameter) ->
      # ParamMetaData (TYPE_INFO)
      buffer.writeUInt8 @id
      buffer.writeUInt8 @resolveScale(parameter)
      
    writeParameterData: (buffer, parameter) ->
      # ParamLenData (TYPE_VARBYTE)
