mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-28 16:13:37 +08:00
fix undefined variable when enabling ascii protocol
This commit is contained in:
@@ -47,7 +47,6 @@ public:
|
||||
}
|
||||
} usb_packet_output;
|
||||
|
||||
#if !defined(USB_PROTOCOL_NATIVE)
|
||||
class TreatPacketSinkAsStreamSink : public StreamSink {
|
||||
public:
|
||||
TreatPacketSinkAsStreamSink(PacketSink& output) : output_(output) {}
|
||||
@@ -66,7 +65,6 @@ public:
|
||||
private:
|
||||
PacketSink& output_;
|
||||
} usb_stream_output(usb_packet_output);
|
||||
#endif
|
||||
|
||||
#if defined(USB_PROTOCOL_NATIVE)
|
||||
BidirectionalPacketBasedChannel usb_channel(usb_packet_output);
|
||||
|
||||
Reference in New Issue
Block a user