add makefile, fix annoying errors
This commit is contained in:
@@ -131,7 +131,7 @@ static void *display_thread(void *arg) {
|
||||
{
|
||||
// prepare some tricky sensors
|
||||
constexpr char modes[] = "QBE";
|
||||
const uint16_t avg_fan_speed = (sensors->aio.fan_speed[0] + sensors->aio.fan_speed[1]) / 2;
|
||||
const uint16_t avg_fan_speed = (uint16_t)((sensors->aio.fan_speed[0] + sensors->aio.fan_speed[1]) / 2);
|
||||
|
||||
char gpudelta[5];
|
||||
const uint8_t delta = sensors->gpu.temp_hotspot - sensors->gpu.temp_edge;
|
||||
@@ -180,7 +180,7 @@ static void *display_thread(void *arg) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int main() {
|
||||
applog(LOG_START, "linuxSmartie %s starting", GIT_HASH);
|
||||
applog(LOG_DBG, "Compiled with %s", C_STD);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user