Skip to content

Commit

Permalink
VideoSources are not Sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblarg committed Mar 3, 2019
1 parent 1d4a3ac commit 0b23f7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.oblarg.logexample.subsystems;

import edu.wpi.cscore.VideoSource;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/java/io/github/oblarg/oblog/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private interface SetterProcessor {
entry(Log.CameraStream.class,
(supplier, rawParams, bin, name) -> {
Log.CameraStream params = (Log.CameraStream) rawParams;
bin.add((params.name().equals("NO_NAME")) ? name : params.name(), (Sendable) supplier.get())
bin.add((params.name().equals("NO_NAME")) ? name : params.name(), supplier.get())
.withWidget(BuiltInWidgets.kCameraStream.getWidgetName())
.withProperties(Map.of(
"showCrosshair", params.showCrosshairs(),
Expand Down

0 comments on commit 0b23f7f

Please sign in to comment.