Merge pull request #12627 from s-hadinger/fix_web_buttons

Berry fix web buttons broken by #12524
This commit is contained in:
s-hadinger 2021-07-12 12:44:29 +02:00 committed by GitHub
commit 580da43a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 68 additions and 46 deletions

View File

@ -1368,7 +1368,7 @@ be_local_closure(event, /* name */
0, /* has sup protos */ 0, /* has sup protos */
NULL, /* no sub protos */ NULL, /* no sub protos */
1, /* has constants */ 1, /* has constants */
( &(const bvalue[23]) { /* upvals */ ( &(const bvalue[29]) { /* upvals */
{ { .s=be_nested_const_str("cmd", -158181397, 3) }, BE_STRING}, { { .s=be_nested_const_str("cmd", -158181397, 3) }, BE_STRING},
{ { .s=be_nested_const_str("exec_cmd", 493567399, 8) }, BE_STRING}, { { .s=be_nested_const_str("exec_cmd", 493567399, 8) }, BE_STRING},
{ { .s=be_nested_const_str("rule", -64077613, 4) }, BE_STRING}, { { .s=be_nested_const_str("rule", -64077613, 4) }, BE_STRING},
@ -1382,20 +1382,26 @@ be_local_closure(event, /* name */
{ { .s=be_nested_const_str("every_100ms", 1546407804, 11) }, BE_STRING}, { { .s=be_nested_const_str("every_100ms", 1546407804, 11) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_button", -757092238, 14) }, BE_STRING}, { { .s=be_nested_const_str("web_add_button", -757092238, 14) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_main_button", -334599632, 19) }, BE_STRING}, { { .s=be_nested_const_str("web_add_main_button", -334599632, 19) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_management_button", -1556090110, 25) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_config_button", 639674325, 21) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_console_button", -813531104, 22) }, BE_STRING},
{ { .s=be_nested_const_str("save_before_restart", 1253239338, 19) }, BE_STRING}, { { .s=be_nested_const_str("save_before_restart", 1253239338, 19) }, BE_STRING},
{ { .s=be_nested_const_str("web_add_handler", -304792334, 15) }, BE_STRING}, { { .s=be_nested_const_str("web_add_handler", -304792334, 15) }, BE_STRING},
{ { .s=be_nested_const_str("web_sensor", -1394870324, 10) }, BE_STRING}, { { .s=be_nested_const_str("web_sensor", -1394870324, 10) }, BE_STRING},
{ { .s=be_nested_const_str("json_append", -1292948012, 11) }, BE_STRING}, { { .s=be_nested_const_str("json_append", -1292948012, 11) }, BE_STRING},
{ { .s=be_nested_const_str("button_pressed", 1694209616, 14) }, BE_STRING}, { { .s=be_nested_const_str("button_pressed", 1694209616, 14) }, BE_STRING},
{ { .s=be_nested_const_str("button_preselif", 491115394, 15) }, BE_STRING},
{ { .s=be_nested_const_str("display", 1164572437, 7) }, BE_STRING}, { { .s=be_nested_const_str("display", 1164572437, 7) }, BE_STRING},
{ { .s=be_nested_const_str("string", 398550328, 6) }, BE_STRING}, { { .s=be_nested_const_str("string", 398550328, 6) }, BE_STRING},
{ { .s=be_nested_const_str("log", 1062293841, 3) }, BE_STRING},
{ { .s=be_nested_const_str("format", -1180859054, 6) }, BE_STRING}, { { .s=be_nested_const_str("format", -1180859054, 6) }, BE_STRING},
{ { .s=be_nested_const_str("BRY: Exception> '%s' - %s", -2047976332, 25) }, BE_STRING}, { { .s=be_nested_const_str("BRY: exception %s - %m", -1290966132, 22) }, BE_STRING},
{ { .i=3 }, BE_INT},
{ { .s=be_nested_const_str("stop_iteration", -121173395, 14) }, BE_STRING}, { { .s=be_nested_const_str("stop_iteration", -121173395, 14) }, BE_STRING},
}), }),
(be_nested_const_str("event", -30355297, 5)), (be_nested_const_str("event", -30355297, 5)),
(be_nested_const_str("input", -103256197, 5)), (be_nested_const_str("input", -103256197, 5)),
( &(const binstruction[137]) { /* code */ ( &(const binstruction[153]) { /* code */
0x1C140300, // 0000 EQ R5 R1 R256 0x1C140300, // 0000 EQ R5 R1 R256
0x78160006, // 0001 JMPF R5 #0009 0x78160006, // 0001 JMPF R5 #0009
0x8C140101, // 0002 GETMET R5 R0 R257 0x8C140101, // 0002 GETMET R5 R0 R257
@ -1404,135 +1410,151 @@ be_local_closure(event, /* name */
0x5C240800, // 0005 MOVE R9 R4 0x5C240800, // 0005 MOVE R9 R4
0x7C140800, // 0006 CALL R5 4 0x7C140800, // 0006 CALL R5 4
0x80040A00, // 0007 RET 1 R5 0x80040A00, // 0007 RET 1 R5
0x7002007E, // 0008 JMP #0088 0x7002008E, // 0008 JMP #0098
0x1C140302, // 0009 EQ R5 R1 R258 0x1C140302, // 0009 EQ R5 R1 R258
0x78160004, // 000A JMPF R5 #0010 0x78160004, // 000A JMPF R5 #0010
0x8C140103, // 000B GETMET R5 R0 R259 0x8C140103, // 000B GETMET R5 R0 R259
0x5C1C0800, // 000C MOVE R7 R4 0x5C1C0800, // 000C MOVE R7 R4
0x7C140400, // 000D CALL R5 2 0x7C140400, // 000D CALL R5 2
0x80040A00, // 000E RET 1 R5 0x80040A00, // 000E RET 1 R5
0x70020077, // 000F JMP #0088 0x70020087, // 000F JMP #0098
0x1C140304, // 0010 EQ R5 R1 R260 0x1C140304, // 0010 EQ R5 R1 R260
0x78160002, // 0011 JMPF R5 #0015 0x78160002, // 0011 JMPF R5 #0015
0x4C140000, // 0012 LDNIL 5 0x4C140000, // 0012 LDNIL 5
0x80040A00, // 0013 RET 1 R5 0x80040A00, // 0013 RET 1 R5
0x70020072, // 0014 JMP #0088 0x70020082, // 0014 JMP #0098
0x1C140305, // 0015 EQ R5 R1 R261 0x1C140305, // 0015 EQ R5 R1 R261
0x78160003, // 0016 JMPF R5 #001B 0x78160003, // 0016 JMPF R5 #001B
0x8C140105, // 0017 GETMET R5 R0 R261 0x8C140105, // 0017 GETMET R5 R0 R261
0x7C140200, // 0018 CALL R5 1 0x7C140200, // 0018 CALL R5 1
0x80040A00, // 0019 RET 1 R5 0x80040A00, // 0019 RET 1 R5
0x7002006C, // 001A JMP #0088 0x7002007C, // 001A JMP #0098
0x1C140306, // 001B EQ R5 R1 R262 0x1C140306, // 001B EQ R5 R1 R262
0x78160003, // 001C JMPF R5 #0021 0x78160003, // 001C JMPF R5 #0021
0x8C140107, // 001D GETMET R5 R0 R263 0x8C140107, // 001D GETMET R5 R0 R263
0x7C140200, // 001E CALL R5 1 0x7C140200, // 001E CALL R5 1
0x80040A00, // 001F RET 1 R5 0x80040A00, // 001F RET 1 R5
0x70020066, // 0020 JMP #0088 0x70020076, // 0020 JMP #0098
0x88140108, // 0021 GETMBR R5 R0 R264 0x88140108, // 0021 GETMBR R5 R0 R264
0x78160064, // 0022 JMPF R5 #0088 0x78160074, // 0022 JMPF R5 #0098
0x60140000, // 0023 GETGBL R5 G0 0x60140000, // 0023 GETGBL R5 G0
0x88180108, // 0024 GETMBR R6 R0 R264 0x88180108, // 0024 GETMBR R6 R0 R264
0x7C140200, // 0025 CALL R5 1 0x7C140200, // 0025 CALL R5 1
0xA802005D, // 0026 EXBLK 0 #0085 0xA802006D, // 0026 EXBLK 0 #0095
0x5C180A00, // 0027 MOVE R6 R5 0x5C180A00, // 0027 MOVE R6 R5
0x7C180000, // 0028 CALL R6 0 0x7C180000, // 0028 CALL R6 0
0xA802004D, // 0029 EXBLK 0 #0078 0xA802005E, // 0029 EXBLK 0 #0089
0x1C1C0309, // 002A EQ R7 R1 R265 0x1C1C0309, // 002A EQ R7 R1 R265
0x781E0004, // 002B JMPF R7 #0031 0x781E0004, // 002B JMPF R7 #0031
0x881C0D09, // 002C GETMBR R7 R6 R265 0x881C0D09, // 002C GETMBR R7 R6 R265
0x781E0002, // 002D JMPF R7 #0031 0x781E0002, // 002D JMPF R7 #0031
0x8C1C0D09, // 002E GETMET R7 R6 R265 0x8C1C0D09, // 002E GETMET R7 R6 R265
0x7C1C0200, // 002F CALL R7 1 0x7C1C0200, // 002F CALL R7 1
0x70020044, // 0030 JMP #0076 0x70020055, // 0030 JMP #0087
0x1C1C030A, // 0031 EQ R7 R1 R266 0x1C1C030A, // 0031 EQ R7 R1 R266
0x781E0004, // 0032 JMPF R7 #0038 0x781E0004, // 0032 JMPF R7 #0038
0x881C0D0A, // 0033 GETMBR R7 R6 R266 0x881C0D0A, // 0033 GETMBR R7 R6 R266
0x781E0002, // 0034 JMPF R7 #0038 0x781E0002, // 0034 JMPF R7 #0038
0x8C1C0D0A, // 0035 GETMET R7 R6 R266 0x8C1C0D0A, // 0035 GETMET R7 R6 R266
0x7C1C0200, // 0036 CALL R7 1 0x7C1C0200, // 0036 CALL R7 1
0x7002003D, // 0037 JMP #0076 0x7002004E, // 0037 JMP #0087
0x1C1C030B, // 0038 EQ R7 R1 R267 0x1C1C030B, // 0038 EQ R7 R1 R267
0x781E0004, // 0039 JMPF R7 #003F 0x781E0004, // 0039 JMPF R7 #003F
0x881C0D0B, // 003A GETMBR R7 R6 R267 0x881C0D0B, // 003A GETMBR R7 R6 R267
0x781E0002, // 003B JMPF R7 #003F 0x781E0002, // 003B JMPF R7 #003F
0x8C1C0D0B, // 003C GETMET R7 R6 R267 0x8C1C0D0B, // 003C GETMET R7 R6 R267
0x7C1C0200, // 003D CALL R7 1 0x7C1C0200, // 003D CALL R7 1
0x70020036, // 003E JMP #0076 0x70020047, // 003E JMP #0087
0x1C1C030C, // 003F EQ R7 R1 R268 0x1C1C030C, // 003F EQ R7 R1 R268
0x781E0004, // 0040 JMPF R7 #0046 0x781E0004, // 0040 JMPF R7 #0046
0x881C0D0C, // 0041 GETMBR R7 R6 R268 0x881C0D0C, // 0041 GETMBR R7 R6 R268
0x781E0002, // 0042 JMPF R7 #0046 0x781E0002, // 0042 JMPF R7 #0046
0x8C1C0D0C, // 0043 GETMET R7 R6 R268 0x8C1C0D0C, // 0043 GETMET R7 R6 R268
0x7C1C0200, // 0044 CALL R7 1 0x7C1C0200, // 0044 CALL R7 1
0x7002002F, // 0045 JMP #0076 0x70020040, // 0045 JMP #0087
0x1C1C030D, // 0046 EQ R7 R1 R269 0x1C1C030D, // 0046 EQ R7 R1 R269
0x781E0004, // 0047 JMPF R7 #004D 0x781E0004, // 0047 JMPF R7 #004D
0x881C0D0D, // 0048 GETMBR R7 R6 R269 0x881C0D0D, // 0048 GETMBR R7 R6 R269
0x781E0002, // 0049 JMPF R7 #004D 0x781E0002, // 0049 JMPF R7 #004D
0x8C1C0D0D, // 004A GETMET R7 R6 R269 0x8C1C0D0D, // 004A GETMET R7 R6 R269
0x7C1C0200, // 004B CALL R7 1 0x7C1C0200, // 004B CALL R7 1
0x70020028, // 004C JMP #0076 0x70020039, // 004C JMP #0087
0x1C1C030E, // 004D EQ R7 R1 R270 0x1C1C030E, // 004D EQ R7 R1 R270
0x781E0004, // 004E JMPF R7 #0054 0x781E0004, // 004E JMPF R7 #0054
0x881C0D0E, // 004F GETMBR R7 R6 R270 0x881C0D0E, // 004F GETMBR R7 R6 R270
0x781E0002, // 0050 JMPF R7 #0054 0x781E0002, // 0050 JMPF R7 #0054
0x8C1C0D0E, // 0051 GETMET R7 R6 R270 0x8C1C0D0E, // 0051 GETMET R7 R6 R270
0x7C1C0200, // 0052 CALL R7 1 0x7C1C0200, // 0052 CALL R7 1
0x70020021, // 0053 JMP #0076 0x70020032, // 0053 JMP #0087
0x1C1C030F, // 0054 EQ R7 R1 R271 0x1C1C030F, // 0054 EQ R7 R1 R271
0x781E0004, // 0055 JMPF R7 #005B 0x781E0004, // 0055 JMPF R7 #005B
0x881C0D0F, // 0056 GETMBR R7 R6 R271 0x881C0D0F, // 0056 GETMBR R7 R6 R271
0x781E0002, // 0057 JMPF R7 #005B 0x781E0002, // 0057 JMPF R7 #005B
0x8C1C0D0F, // 0058 GETMET R7 R6 R271 0x8C1C0D0F, // 0058 GETMET R7 R6 R271
0x7C1C0200, // 0059 CALL R7 1 0x7C1C0200, // 0059 CALL R7 1
0x7002001A, // 005A JMP #0076 0x7002002B, // 005A JMP #0087
0x1C1C0310, // 005B EQ R7 R1 R272 0x1C1C0310, // 005B EQ R7 R1 R272
0x781E0004, // 005C JMPF R7 #0062 0x781E0004, // 005C JMPF R7 #0062
0x881C0D10, // 005D GETMBR R7 R6 R272 0x881C0D10, // 005D GETMBR R7 R6 R272
0x781E0002, // 005E JMPF R7 #0062 0x781E0002, // 005E JMPF R7 #0062
0x8C1C0D10, // 005F GETMET R7 R6 R272 0x8C1C0D10, // 005F GETMET R7 R6 R272
0x7C1C0200, // 0060 CALL R7 1 0x7C1C0200, // 0060 CALL R7 1
0x70020013, // 0061 JMP #0076 0x70020024, // 0061 JMP #0087
0x1C1C0311, // 0062 EQ R7 R1 R273 0x1C1C0311, // 0062 EQ R7 R1 R273
0x781E0004, // 0063 JMPF R7 #0069 0x781E0004, // 0063 JMPF R7 #0069
0x881C0D11, // 0064 GETMBR R7 R6 R273 0x881C0D11, // 0064 GETMBR R7 R6 R273
0x781E0002, // 0065 JMPF R7 #0069 0x781E0002, // 0065 JMPF R7 #0069
0x8C1C0D11, // 0066 GETMET R7 R6 R273 0x8C1C0D11, // 0066 GETMET R7 R6 R273
0x7C1C0200, // 0067 CALL R7 1 0x7C1C0200, // 0067 CALL R7 1
0x7002000C, // 0068 JMP #0076 0x7002001D, // 0068 JMP #0087
0x1C1C030E, // 0069 EQ R7 R1 R270 0x1C1C0312, // 0069 EQ R7 R1 R274
0x781E0004, // 006A JMPF R7 #0070 0x781E0004, // 006A JMPF R7 #0070
0x881C0D12, // 006B GETMBR R7 R6 R274 0x881C0D12, // 006B GETMBR R7 R6 R274
0x781E0002, // 006C JMPF R7 #0070 0x781E0002, // 006C JMPF R7 #0070
0x8C1C0D12, // 006D GETMET R7 R6 R274 0x8C1C0D12, // 006D GETMET R7 R6 R274
0x7C1C0200, // 006E CALL R7 1 0x7C1C0200, // 006E CALL R7 1
0x70020005, // 006F JMP #0076 0x70020016, // 006F JMP #0087
0x1C1C0312, // 0070 EQ R7 R1 R274 0x1C1C0313, // 0070 EQ R7 R1 R275
0x781E0003, // 0071 JMPF R7 #0076 0x781E0004, // 0071 JMPF R7 #0077
0x881C0D12, // 0072 GETMBR R7 R6 R274 0x881C0D13, // 0072 GETMBR R7 R6 R275
0x781E0001, // 0073 JMPF R7 #0076 0x781E0002, // 0073 JMPF R7 #0077
0x8C1C0D12, // 0074 GETMET R7 R6 R274 0x8C1C0D13, // 0074 GETMET R7 R6 R275
0x7C1C0200, // 0075 CALL R7 1 0x7C1C0200, // 0075 CALL R7 1
0xA8040001, // 0076 EXBLK 1 1 0x7002000F, // 0076 JMP #0087
0x7002000B, // 0077 JMP #0084 0x1C1C0314, // 0077 EQ R7 R1 R276
0xAC1C0002, // 0078 CATCH R7 0 2 0x781E0007, // 0078 JMPF R7 #0081
0x70020008, // 0079 JMP #0083 0x881C0D14, // 0079 GETMBR R7 R6 R276
0xA4262600, // 007A IMPORT R9 R275 0x781E0005, // 007A JMPF R7 #0081
0x6028000F, // 007B GETGBL R10 G15 0x1C1C0311, // 007B EQ R7 R1 R273
0x8C2C1314, // 007C GETMET R11 R9 R276 0x781DFFFE, // 007C JMPF R7 #007C
0x58340015, // 007D LDCONST R13 K21 0x881C0D16, // 007D GETMBR R7 R6 R278
0x5C380E00, // 007E MOVE R14 R7 0x8C1C0D16, // 007E GETMET R7 R6 R278
0x5C3C1000, // 007F MOVE R15 R8 0x7C1C0200, // 007F CALL R7 1
0x7C2C0800, // 0080 CALL R11 4 0x70020005, // 0080 JMP #0087
0x7C280200, // 0081 CALL R10 1 0x1C1C0316, // 0081 EQ R7 R1 R278
0x70020000, // 0082 JMP #0084 0x781E0003, // 0082 JMPF R7 #0087
0xB0080000, // 0083 RAISE 2 R0 R0 0x881C0D16, // 0083 GETMBR R7 R6 R278
0x7001FFA1, // 0084 JMP #0027 0x781E0001, // 0084 JMPF R7 #0087
0x58140016, // 0085 LDCONST R5 K22 0x8C1C0D16, // 0085 GETMET R7 R6 R278
0xAC140200, // 0086 CATCH R5 1 0 0x7C1C0200, // 0086 CALL R7 1
0xB0080000, // 0087 RAISE 2 R0 R0 0xA8040001, // 0087 EXBLK 1 1
0x80000000, // 0088 RET 0 R0 0x7002000A, // 0088 JMP #0094
0xAC1C0002, // 0089 CATCH R7 0 2
0x70020007, // 008A JMP #0093
0xA4262E00, // 008B IMPORT R9 R279
0x8C280118, // 008C GETMET R10 R0 R280
0x8C301319, // 008D GETMET R12 R9 R281
0x5838001A, // 008E LDCONST R14 K26
0x583C001B, // 008F LDCONST R15 K27
0x7C300600, // 0090 CALL R12 3
0x7C280400, // 0091 CALL R10 2
0x70020000, // 0092 JMP #0094
0xB0080000, // 0093 RAISE 2 R0 R0
0x7001FF91, // 0094 JMP #0027
0x5814001C, // 0095 LDCONST R5 K28
0xAC140200, // 0096 CATCH R5 1 0
0xB0080000, // 0097 RAISE 2 R0 R0
0x80000000, // 0098 RET 0 R0
}) })
) )
); );