Skip to content

Commit

Permalink
comment: first char "!" or ";"
Browse files Browse the repository at this point in the history
  • Loading branch information
vad7 committed Jun 21, 2023
1 parent ad51231 commit 91698ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions Distr/nrf24batch/Kitchen Vent Dimmer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ W: SSR2_PulseWidth,us*2=,32,WROM2
R: DamperOpenTime=34
W: DamperOpenTime=,34

!R: FanCookSpIdxDnKey=35
!W: FanCookSpIdxDnKey=,35
!R: FanCookSpIdxUpKey=36
!W: FanCookSpIdxUpKey=,36

R: IRRemotes=35
W: IRRemotes=,35

Expand Down Expand Up @@ -150,6 +155,7 @@ WBatch: Init(Cook2spd,Lamp-F2.2): RxAddr=0xC1;Ch=122;CO2 level={870,930,1000};Fa
WBatch: IRRemotes clear: IRRemotes=0
WBatch: IRRemotes 1 kitchen: IRRemotes=1;IRRemotesHash={0x6DA5,0xFCA5,0x7CA5,0xB425,0x3425,0x1625,0x8525}
WBatch: Fans Speeds: Fan speeds=3;FanSpeed={10,12,16};FanCook speeds=3;FanCookSpeed={12,16,32}
WBatch: FanCooker Down/Up key idx: FanCookSpIdxDnKey=2;FanCookSpIdxUpKey=3
WBatch: LED Warning: _LED Warning=0x10
WBatch: OSCCAL: _OSCCAL=146
WBatch: CO2 Level: CO2 level={750,850,1000}
Expand Down
12 changes: 6 additions & 6 deletions application.fam
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
App(
appid="nrf24_scanner",
name="[NRF24] Scanner",
appid="nrf24_batch",
name="[NRF24] Batch",
apptype=FlipperAppType.EXTERNAL,
entry_point="nrf24scan_app",
cdefines=["APP_NRF24SCAN"],
entry_point="nrf24batch_app",
cdefines=["APP_NRF24BATCH"],
requires=["gui"],
stack_size=2 * 1024,
order=60,
fap_icon="nrf24scan_10px.png",
fap_icon="nrf24batch_10px.png",
fap_category="GPIO",
fap_private_libs=[
Lib(
Expand All @@ -17,4 +17,4 @@ App(
],
),
],
)
)
2 changes: 1 addition & 1 deletion nrf24batch.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static uint8_t load_settings_file() {
NRF_INITED = false;
while(stream_read_line(file_stream, str)) {
char *p = (char*)furi_string_get_cstr(str);
if(*p <= ' ') continue;
if(*p <= '!' || *p == ';') continue;
//char* delim_eq = strchr(p, '=');
char *delim_col = strchr(p, ':');
if(delim_col == NULL) { // Constant found - no ':'
Expand Down

0 comments on commit 91698ab

Please sign in to comment.