Skip to content

Commit e70330c

Browse files
committed
wip: migrate hub
1 parent 2f286a0 commit e70330c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

openpod/modules/rec_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from modules.rec_log import log_api, hash_data
1414

15-
if settings.Pi:
15+
if settings.IS_PI:
1616
from modules import rec_gpio
1717
from settings import LED_IO
1818

@@ -138,7 +138,7 @@ def link_hub():
138138
json.dump(system_data, file)
139139
file.truncate()
140140

141-
if settings.Pi:
141+
if settings.IS_PI:
142142
rec_gpio.state(LED_IO, 1)
143143
except OSError as err:
144144
log_api.error("link_hub - Unable to open file system.json - %s", err)

openpod/modules/rec_lan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from modules.rec_log import network_log
1414

15-
if settings.Pi:
15+
if settings.IS_PI:
1616
from modules import rec_gpio
1717

1818

openpod/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'''Settings file contains "constants" that are unlikely to be changed.'''
44

55
DEBUG = True
6-
PI = False
6+
IS_PI = False
77

88

99
if DEBUG is True:

0 commit comments

Comments
 (0)