Fix unmarshalling of tx_power
This commit is contained in:
@@ -121,6 +121,7 @@ func (dst *ChannelPlanRadioTable) UnmarshalJSON(b []byte) error {
|
||||
aux := &struct {
|
||||
BackupChannel numberOrString `json:"backup_channel"`
|
||||
Channel numberOrString `json:"channel"`
|
||||
TxPower numberOrString `json:"tx_power"`
|
||||
Width emptyStringInt `json:"width"`
|
||||
|
||||
*Alias
|
||||
|
||||
@@ -302,6 +302,7 @@ func (dst *DeviceRadioTable) UnmarshalJSON(b []byte) error {
|
||||
Maxsta emptyStringInt `json:"maxsta"`
|
||||
MinRssi emptyStringInt `json:"min_rssi"`
|
||||
SensLevel emptyStringInt `json:"sens_level"`
|
||||
TxPower numberOrString `json:"tx_power"`
|
||||
|
||||
*Alias
|
||||
}{
|
||||
|
||||
Reference in New Issue
Block a user