Skip to content

Commit

Permalink
Fix some packaging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed May 19, 2020
1 parent 5932af2 commit 40e3ed5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
project(
'wluma',
'c',
version: '0.1.0',
version: '1.0.0',
license: 'MIT',
default_options: [
'buildtype=debug',
'buildtype=release',
'c_std=c11',
'warning_level=2',
'werror=false',
Expand All @@ -13,6 +13,8 @@ project(

add_project_arguments([
'-Wno-unused',
'-Wno-unused-result',
'-D_FORTIFY_SOURCE=2',
'-DWLR_USE_UNSTABLE',
'-DENABLE_DMABUF',
], language: 'c')
Expand Down
3 changes: 0 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,6 @@ static void update_backlight(struct Context *ctx, long lux, int luma, int backli
data_save(ctx);

ctx->lux_max_seen = fmax(fmax(ctx->lux_max_seen, lux), 1);

printf("lux=%ld luma=%d backlight=%d - LEARNED\n", lux, luma, backlight);
} else {
struct DataPoint *nearest = ctx->data, *elem = ctx->data;
long lux_capped = fmin(lux, ctx->lux_max_seen);
Expand All @@ -564,7 +562,6 @@ static void update_backlight(struct Context *ctx, long lux, int luma, int backli
}

if (backlight != nearest->backlight) {
printf("lux=%ld luma=%d backlight=%d - SETTING backlight to %d\n", lux, luma, backlight, nearest->backlight);
struct timespec sleep = { 0 };
for (
int step = backlight < nearest->backlight ? 1 : -1;
Expand Down

0 comments on commit 40e3ed5

Please sign in to comment.