Skip to content

Commit 6a1aa54

Browse files
committed
refactor: declare ascii_mode in libectool header
1 parent b4dcaa8 commit 6a1aa54

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/libectool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define GEC_LOCK_TIMEOUT_SECS 30 /* 30 secs */
3131
#define interfaces COMM_ALL
3232

33+
int ascii_mode;
3334
// -----------------------------------------------------------------------------
3435
// Helper functions
3536
// -----------------------------------------------------------------------------

src/core/libectool.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef LIBECTOOL_H
22
#define LIBECTOOL_H
33

4+
#include <stdbool.h>
5+
46
#ifdef __cplusplus
57
extern "C" {
68
#endif
@@ -16,6 +18,9 @@ void set_fan_speed(int speed);
1618
float get_max_temperature();
1719
float get_max_non_battery_temperature();
1820

21+
/* ASCII mode for printing, default off */
22+
extern int ascii_mode;
23+
1924
#ifdef __cplusplus
2025
}
2126
#endif

0 commit comments

Comments
 (0)