mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 20:26:32 +00:00
Merge pull request #11755 from barbudor/fix_berry_no_light
Fix typo in Berry with no USE_LIGHT
This commit is contained in:
commit
4928c6d481
@ -24,8 +24,8 @@
|
|||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
|
|
||||||
/*********************************************************************************************\
|
/*********************************************************************************************\
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
\*********************************************************************************************/
|
\*********************************************************************************************/
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ extern "C" {
|
|||||||
|
|
||||||
if (Light.device > 0) {
|
if (Light.device > 0) {
|
||||||
// we have a light
|
// we have a light
|
||||||
|
|
||||||
uint8_t channels[LST_MAX];
|
uint8_t channels[LST_MAX];
|
||||||
char s_rgb[8] = {0}; // RGB raw levels
|
char s_rgb[8] = {0}; // RGB raw levels
|
||||||
light_controller.calcLevels(channels);
|
light_controller.calcLevels(channels);
|
||||||
@ -207,7 +207,7 @@ extern "C" {
|
|||||||
// channels
|
// channels
|
||||||
if (map_find(vm, "channels")) {
|
if (map_find(vm, "channels")) {
|
||||||
if (be_isinstance(vm, -1)) {
|
if (be_isinstance(vm, -1)) {
|
||||||
be_getbuiltin(vm, "list"); // add "list" class
|
be_getbuiltin(vm, "list"); // add "list" class
|
||||||
if (be_isderived(vm, -2)) {
|
if (be_isderived(vm, -2)) {
|
||||||
be_pop(vm, 1); // remove "list" class from top
|
be_pop(vm, 1); // remove "list" class from top
|
||||||
int32_t list_size = get_list_size(vm);
|
int32_t list_size = get_list_size(vm);
|
||||||
@ -303,9 +303,9 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
int32_t l_getlight(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
int32_t l_getlight(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
||||||
int32_t l_setlight(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
int32_t l_setlight(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
||||||
int32_t gamma8(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
int32_t l_gamma8(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
||||||
int32_t gamma10(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
int32_t l_gamma10(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
||||||
int32_t reverse_gamma10(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
int32_t l_rev_gamma10(struct bvm *vm) __attribute__ ((weak, alias ("b_light_missing")));
|
||||||
#endif // #ifdef USE_LIGHT
|
#endif // #ifdef USE_LIGHT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user