Lup Yuen Lee

Results 35 comments of Lup Yuen Lee

Hi: Sorry I'm no longer supporting Mynewt on PineTime. I hope you can switch to InfiniTime instead. Thanks :-)

Thanks! :-) Could you try flashing InfiniTime with PineTime Updater? It works with Raspberry Pi... https://github.com/lupyuen/pinetime-updater

I'm sorry it has been 2 years since I touched PineTime. Could you ask someone in the PineTime Chatroom on Matrix / Discord? Thanks

The Assignment in the Condition looks suspicious because `pstmsg->event` has already been set by the calling function `i2c_interrupt_entry` ... Yet `pstmsg->event` isn't used after `i2c_transferbytes` returns to `i2c_interrupt_entry`

Hi: Thanks for the PR. Sorry this repo has been superseded by this... https://github.com/lupyuen/pinetime-rust-mynewt Can you check whether the new repo has the same problem? Thanks!

Hi Marcel: Thanks for the tip! The porting of the entire application from C to Rust is still in progress, once I'm done with the meaty parts (e.g. CoAP messaging),...

Also what do you think about `error-chain`? http://brson.github.io/2016/11/30/starting-with-error-chain

Thanks Marcel, I'm testing expect() like this... ```rust pub fn start_network_task() -> Result { // Returns an error code upon error. Ok(()) } // In main() let rc = start_network_task();...

Hmmm wonder why `Result` and `expect()` would cause this bloat compared with returning ints. Aren't they functionally equivalent? That's one of the reasons I didn't include this for the article....