Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private def resolveCommand(address:Int, id: Int):command.Command = id match {
- case IngoingCommands.connect => {
- new ConnectCommand(address)
- }
- case x:_ => {
- Core.log(LogLevel.Warning, "PBUS received unknown command ("+x+")")
- new AnonymousCommand(address, 0, (args:List[Short])=>{new ResponseError(Errors.unknownCommand)})
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement