Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyangXYZ committed Dec 21, 2023
1 parent 162188e commit 6ee0833
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/PacketSniffer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import ChannelChart from '@/components/ChannelChart.vue'
import { ref, watch, nextTick } from 'vue'
import { Network } from '@/hooks/useStates'
import { type Packet, PKT_TYPES } from '@/networks/TSCH/typedefs'
import type { Packet } from '@/networks/typedefs'
import { PKT_TYPES } from '@/networks/TSCH/typedefs'
import { Filter } from '@element-plus/icons-vue'
const filterRules = ref()
Expand Down
7 changes: 2 additions & 5 deletions src/networks/TSCH/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
import type {
ScheduleConfig,
Cell,
Packet,
Message,
INIT_MSG_PAYLOAD,
BEACON_PKT_PAYLOAD,
ASSOC_REQ_PKT_PAYLOAD,
ASN_MSG_PAYLOAD,
ASSOC_RSP_PKT_PAYLOAD,
MsgHandler,
PktHandler
ASSOC_RSP_PKT_PAYLOAD
} from './typedefs'
import { MSG_TYPES, ADDR, CELL_TYPES, PKT_TYPES } from './typedefs'
import type { Packet, Message, MsgHandler, PktHandler } from '../typedefs'

class TSCHNode {
id: number = 0
Expand Down
1 change: 1 addition & 0 deletions src/networks/TSCH/typedefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface ScheduleConfig {
shared_channel: number
}


// basic unit of the communication schedule
export interface Cell {
type: number
Expand Down

0 comments on commit 6ee0833

Please sign in to comment.