mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
Ran formatter (#681)
This commit is contained in:
committed by
Peter Johnson
parent
ce4c9edd1f
commit
9945a5b3c6
@@ -226,7 +226,7 @@ void SerialHelper::QueryHubPaths(int32_t* status) {
|
||||
// Using std::string because this is guarenteed to be large
|
||||
std::string output = "";
|
||||
|
||||
std::shared_ptr<FILE> pipe(popen(val.c_str(), "r"), pclose);
|
||||
std::shared_ptr<std::FILE> pipe(popen(val.c_str(), "r"), pclose);
|
||||
// Just check the next item on a pipe failure
|
||||
if (!pipe) continue;
|
||||
while (!feof(pipe.get())) {
|
||||
|
||||
@@ -22,4 +22,4 @@ typedef int halsim_extension_init_func_t(void);
|
||||
extern "C" {
|
||||
int HAL_LoadOneExtension(const char* library);
|
||||
int HAL_LoadExtensions(void);
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
@@ -35,5 +35,5 @@ int32_t HALSIM_RegisterI2CWriteCallback(int32_t index,
|
||||
void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
@@ -48,5 +48,5 @@ void HALSIM_SetSPISetAccumulatorValue(int32_t index, int64_t value);
|
||||
int64_t HALSIM_GetSPIGetAccumulatorValue(int32_t index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
@@ -148,4 +148,4 @@ void HALSIM_CancelI2CWriteCallback(int32_t index, int32_t uid) {
|
||||
SimI2CData[index].CancelWriteCallback(uid);
|
||||
}
|
||||
|
||||
} // extern c
|
||||
} // extern "C"
|
||||
|
||||
@@ -244,4 +244,4 @@ int64_t HALSIM_GetSPIGetAccumulatorValue(int32_t index) {
|
||||
return SimSPIData[index].GetAccumulatorValue();
|
||||
}
|
||||
|
||||
} // extern c
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user