mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Adds ConnectionInfo to Rpc callback (#116)
This commit is contained in:
committed by
Peter Johnson
parent
9047c98e68
commit
a7eca7d4bd
@@ -4,7 +4,8 @@
|
||||
|
||||
#include "ntcore.h"
|
||||
|
||||
std::string callback1(nt::StringRef name, nt::StringRef params_str) {
|
||||
std::string callback1(nt::StringRef name, nt::StringRef params_str,
|
||||
const ConnectionInfo& conn_info) {
|
||||
auto params = nt::UnpackRpcValues(params_str, NT_DOUBLE);
|
||||
if (params.empty()) {
|
||||
std::fputs("empty params?\n", stderr);
|
||||
|
||||
Reference in New Issue
Block a user