mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Replaced .h C headers with c-prefixed version and added std:: prefix to C standard library usage (#90)
This was not done to stdint.h for brevity in type names. Also removed "using namespace std;".
This commit is contained in:
committed by
Peter Johnson
parent
776a991d61
commit
5a82f73d9b
@@ -7,9 +7,10 @@
|
||||
|
||||
#include "HAL/Accelerometer.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ChipObject.h"
|
||||
|
||||
@@ -125,7 +126,7 @@ static void writeRegister(Register reg, uint8_t data) {
|
||||
if (getFPGATime(&status) > initialTime + 1000) break;
|
||||
}
|
||||
|
||||
fflush(stdout);
|
||||
std::fflush(stdout);
|
||||
}
|
||||
|
||||
static uint8_t readRegister(Register reg) {
|
||||
@@ -155,7 +156,7 @@ static uint8_t readRegister(Register reg) {
|
||||
if (getFPGATime(&status) > initialTime + 1000) break;
|
||||
}
|
||||
|
||||
fflush(stdout);
|
||||
std::fflush(stdout);
|
||||
|
||||
return accel->readDATI(&status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user