|
@@ -678,6 +678,7 @@ LIGHT_BOOL light_setBrightness(char const *controller, unsigned long v)
|
678
|
678
|
return FALSE;
|
679
|
679
|
}
|
680
|
680
|
|
|
681
|
+ LIGHT_NOTE_FMT("setting brightness %lu (raw) to controller", v);
|
681
|
682
|
writeVal = light_writeULong(brightnessPath, v);
|
682
|
683
|
|
683
|
684
|
if(!writeVal)
|
|
@@ -849,6 +850,7 @@ LIGHT_BOOL light_getMinCap(char const * controller, LIGHT_BOOL * hasMinCap, unsi
|
849
|
850
|
*hasMinCap = FALSE;
|
850
|
851
|
*minCap = 0;
|
851
|
852
|
free(mincapPath);
|
|
853
|
+ LIGHT_NOTE("cap file doesn't exist or can't read from it, so assuming a minimum brightness of 0");
|
852
|
854
|
return TRUE;
|
853
|
855
|
}
|
854
|
856
|
|
|
@@ -874,6 +876,7 @@ LIGHT_BOOL light_setMinCap(char const * controller, unsigned long v)
|
874
|
876
|
return FALSE;
|
875
|
877
|
}
|
876
|
878
|
|
|
879
|
+ LIGHT_NOTE_FMT("setting minimum cap to %lu (raw)", v);
|
877
|
880
|
if(!light_writeULong(mincapPath, v))
|
878
|
881
|
{
|
879
|
882
|
LIGHT_ERR("could not write to minimum cap file");
|
|
@@ -916,6 +919,7 @@ LIGHT_BOOL light_saveBrightness(char const *controller, unsigned long v){
|
916
|
919
|
return FALSE;
|
917
|
920
|
}
|
918
|
921
|
|
|
922
|
+ LIGHT_NOTE_FMT("saving brightness %lu (raw) to save file\n", v);
|
919
|
923
|
if(!light_writeULong(savePath, v))
|
920
|
924
|
{
|
921
|
925
|
LIGHT_ERR("could not write to save/restore file");
|
|
@@ -937,6 +941,7 @@ LIGHT_BOOL light_restoreBrightness(char const *controller){
|
937
|
941
|
return FALSE;
|
938
|
942
|
}
|
939
|
943
|
|
|
944
|
+ LIGHT_NOTE("restoring brightness from saved file");
|
940
|
945
|
if(!light_readULong(restorePath, &v))
|
941
|
946
|
{
|
942
|
947
|
LIGHT_ERR("could not read saved value");
|