Using puts instead of p
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
.local
|
.local
|
||||||
.config
|
.config
|
||||||
.project
|
.project
|
||||||
|
*.pid
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class InSyncState < StatePattern::State
|
|||||||
# did we reach the end of the frame?
|
# did we reach the end of the frame?
|
||||||
if new_frame_starts(bytes,idx,sync_pattern_length)
|
if new_frame_starts(bytes,idx,sync_pattern_length)
|
||||||
frame_lines = frame.split("\n")
|
frame_lines = frame.split("\n")
|
||||||
p "------ FRAME -----"
|
puts "--- FRAME ---"
|
||||||
# p frame_lines
|
# p frame_lines
|
||||||
# p "##################"
|
# p "##################"
|
||||||
reading = handle_frame(frame_lines)
|
reading = handle_frame(frame_lines)
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ services:
|
|||||||
image: mysql
|
image: mysql
|
||||||
volumes:
|
volumes:
|
||||||
- /home/pcog/smartmeter/data:/var/lib/mysql
|
- /home/pcog/smartmeter/data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: rootme
|
MYSQL_ROOT_PASSWORD: rootme
|
||||||
MYSQL_DATABASE: smartmeter
|
MYSQL_DATABASE: smartmeter
|
||||||
|
|||||||
Reference in New Issue
Block a user