Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dave Griffiths
mongoose-2000
Commits
b6a9e308
Commit
b6a9e308
authored
Nov 28, 2013
by
Dave Griffiths
Browse files
synced sound
parent
45185fda
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
android/assets/starwisp.scm
android/assets/starwisp.scm
+4
-4
android/src/foam/mongoose/NetworkManager.java
android/src/foam/mongoose/NetworkManager.java
+3
-3
android/src/foam/mongoose/StarwispBuilder.java
android/src/foam/mongoose/StarwispBuilder.java
+1
-1
No files found.
android/assets/starwisp.scm
View file @
b6a9e308
...
...
@@ -294,13 +294,13 @@
data
)))
(
cond
((
null?
r
)
(
debug!
"
All files up to date
"
)
(
debug!
"
No new data to download
"
)
(
set-current!
'download
1
)
(
append
(
if
(
eqv?
(
get-current
'upload
0
)
1
)
(
list
(
play-sound
"ping"
))
'
())
(
list
(
toast
"
All files up to date
"
))
r
))
(
toast
"
No new data to download
"
))
r
))
(
else
(
debug!
(
string-append
"Requesting "
...
...
@@ -321,7 +321,7 @@
(
spit
db
"stream"
(
dirty-entities
db
"stream"
)))))
(
append
(
cond
((
>
(
length
r
)
0
)
(
debug!
(
string-append
"Uploading "
(
number->string
(
/
(
length
r
)
2
)
)
" items..."
))
(
debug!
(
string-append
"Uploading "
(
number->string
(
length
r
))
" items..."
))
(
list
(
toast
"Uploading data..."
)))
(
else
...
...
@@ -331,7 +331,7 @@
(
if
(
eqv?
(
get-current
'download
0
)
1
)
(
list
(
play-sound
"ping"
))
'
())
(
list
(
toast
"No data changed to upload"
))))
r
)))
)
(
toast
"No data changed to upload"
))))
)
r
)))
(
define
(
connect-to-net
fn
)
(
list
...
...
android/src/foam/mongoose/NetworkManager.java
View file @
b6a9e308
...
...
@@ -51,11 +51,11 @@ public class NetworkManager {
}
void
Start
(
String
ssid
,
StarwispActivity
c
,
String
name
,
StarwispBuilder
b
)
{
m_CallbackName
=
name
;
m_Context
=
c
;
m_Builder
=
b
;
if
(
state
==
NetworkManager
.
State
.
IDLE
)
{
m_CallbackName
=
name
;
m_Context
=
c
;
m_Builder
=
b
;
wifi
=
(
WifiManager
)
c
.
getSystemService
(
Context
.
WIFI_SERVICE
);
state
=
State
.
SCANNING
;
SSID
=
ssid
;
...
...
android/src/foam/mongoose/StarwispBuilder.java
View file @
b6a9e308
...
...
@@ -676,7 +676,7 @@ public class StarwispBuilder
final
Integer
id
=
arr
.
getInt
(
1
);
String
token
=
arr
.
getString
(
2
);
Log
.
i
(
"starwisp"
,
"Update: "
+
type
+
" "
+
id
+
" "
+
token
);
//
Log.i("starwisp", "Update: "+type+" "+id+" "+token);
// non widget commands
if
(
token
.
equals
(
"toast"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment