fix revburner typo
This commit is contained in:
parent
052ee12178
commit
d3618c758d
|
|
@ -5,7 +5,7 @@
|
||||||
#include "tachdevice.h"
|
#include "tachdevice.h"
|
||||||
#include "../slog/slog.h"
|
#include "../slog/slog.h"
|
||||||
|
|
||||||
const size_t buf_size = 8;
|
const size_t REVBURNER_BUFSIZE = 8;
|
||||||
|
|
||||||
|
|
||||||
int revburner_update(TachDevice* tachdevice, int pulses)
|
int revburner_update(TachDevice* tachdevice, int pulses)
|
||||||
|
|
@ -13,8 +13,8 @@ int revburner_update(TachDevice* tachdevice, int pulses)
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
unsigned char bytes[buf_size];
|
unsigned char bytes[REVBURNER_BUFSIZE];
|
||||||
for (int x = 0; x < buf_size; x++)
|
for (int x = 0; x < REVBURNER_BUFSIZE; x++)
|
||||||
{
|
{
|
||||||
bytes[x] = 0x00;
|
bytes[x] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
@ -27,7 +27,7 @@ int revburner_update(TachDevice* tachdevice, int pulses)
|
||||||
|
|
||||||
if (tachdevice->handle)
|
if (tachdevice->handle)
|
||||||
{
|
{
|
||||||
res = hid_write(tachdevice->handle, bytes, buf_size);
|
res = hid_write(tachdevice->handle, bytes, REVBURNER_BUFSIZE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue